blob: 5f5742f74831c8c3f82e824c5be1def4119c8a0b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
local configs = require 'nvim_lsp/configs'
local util = require 'nvim_lsp/util'
configs.zls = {
default_config = {
cmd = {"zls"};
filetypes = {"zig", "zir"};
root_dir = function(fname)
return util.root_pattern("zls.json", ".git")(fname) or util.path.dirname(fname)
end
};
docs = {
description = [[
https://github.com/zigtools/zls
`Zig LSP implementation + Zig Language Server`.
]];
default_config = {
root_dir = [[util.root_pattern("zls.json", ".git") or current_file_dirname]];
};
};
};
|