diff --git a/README.md b/README.md index ec0b91d..2254ebd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,22 @@ # protols Language server for proto files + +## Testing with neovim +```lua +local client = vim.lsp.start_client({ + name = "protols", + cmd = { "" }, +}) + +if not client then + vim.notify("Could not connect to protols server") +end + +vim.api.nvim_create_autocmd("FileType", { + pattern = "proto", + callback = function() + vim.lsp.buf_attach_client(0, client) + end, +}) + +```