diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim_lsp/zls.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/nvim_lsp/zls.lua b/lua/nvim_lsp/zls.lua new file mode 100644 index 00000000..8e91bc8e --- /dev/null +++ b/lua/nvim_lsp/zls.lua @@ -0,0 +1,20 @@ +local configs = require 'nvim_lsp/configs' +local util = require 'nvim_lsp/util' + +configs.zls = { + default_config = { + cmd = {"zls"}; + filetypes = {"zig", "zir"}; + root_dir = util.root_pattern("zls.json", ".git", "."); + }; + docs = { + description = [[ + https://github.com/zigtools/zls + + `Zig LSP implementation + Zig Language Server`. + ]]; + default_config = { + root_dir = [[util.root_pattern("zls.json", ".git") or cwd]]; + }; + }; +}; |
