aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/vala_ls.lua21
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