diff options
| author | HiPhish <hiphish@posteo.de> | 2021-03-06 00:31:45 +0100 |
|---|---|---|
| committer | HiPhish <hiphish@posteo.de> | 2021-03-06 00:31:45 +0100 |
| commit | 9c812500dc929a592bf3766df0e06232750d39e8 (patch) | |
| tree | 4a5446033754e20b622c7a03b90bcb3bfd3c3774 /lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-9c812500dc929a592bf3766df0e06232750d39e8.tar nvim-lspconfig-9c812500dc929a592bf3766df0e06232750d39e8.tar.gz nvim-lspconfig-9c812500dc929a592bf3766df0e06232750d39e8.tar.bz2 nvim-lspconfig-9c812500dc929a592bf3766df0e06232750d39e8.tar.lz nvim-lspconfig-9c812500dc929a592bf3766df0e06232750d39e8.tar.xz nvim-lspconfig-9c812500dc929a592bf3766df0e06232750d39e8.tar.zst nvim-lspconfig-9c812500dc929a592bf3766df0e06232750d39e8.zip | |
Add Vala language server
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/vala_ls.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/vala_ls.lua b/lua/lspconfig/vala_ls.lua new file mode 100644 index 00000000..3b19786c --- /dev/null +++ b/lua/lspconfig/vala_ls.lua @@ -0,0 +1,21 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +configs.vala_ls = { + default_config = { + cmd = {'vala-language-server'}, + filetypes = {'vala', 'genie'}, + root_dir = function(fname) + return util.root_pattern("meson.build")(fname) + or util.find_git_ancestor(fname) + end, + }, + docs = { + description = 'https://github.com/benwaffle/vala-language-server', + default_config = { + root_dir = [[root_pattern("meson.build", ".git")]] + }, + }, +} + +-- vim:et ts=2 sw=2 |
