From 30fe730255ca7d0b9c6f054fc061dde7a239319c Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Tue, 26 Sep 2023 12:41:46 +0300 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b243bdd..1fb88328 100644 --- a/README.md +++ b/README.md @@ -143,8 +143,19 @@ endif ``` #### nvim-lspconfig -- [For Neovim 0.5.0](https://github.com/neovim/nvim-lspconfig) -- see `CONFIG.md` in that project +- For Neovim 0.5.0 or higher +- Make sure [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) is installed +- see [the recommended config](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#vala_ls) in that project + +```lua +require'lspconfig'.vala_ls.setup { + -- defaults, no need to specify these + cmd = { "vala-language-server" }, + filetypes = { "vala", "genie" }, + root_dir = root_pattern("meson.build", ".git"), + single_file_support = true, +} +``` ### Visual Studio Code - [Official Vala plugin](https://marketplace.visualstudio.com/items?itemName=prince781.vala)