diff options
| author | Ogromny <ogromnycoding@gmail.com> | 2020-09-24 08:57:05 +0200 |
|---|---|---|
| committer | Ogromny <ogromnycoding@gmail.com> | 2020-09-24 08:57:05 +0200 |
| commit | c402bbd595d794bc4021310f4956b70c5371703e (patch) | |
| tree | 3ce14af86e382b92fce2c8907265cbd03a049ff3 /lua/nvim_lsp | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-c402bbd595d794bc4021310f4956b70c5371703e.tar nvim-lspconfig-c402bbd595d794bc4021310f4956b70c5371703e.tar.gz nvim-lspconfig-c402bbd595d794bc4021310f4956b70c5371703e.tar.bz2 nvim-lspconfig-c402bbd595d794bc4021310f4956b70c5371703e.tar.lz nvim-lspconfig-c402bbd595d794bc4021310f4956b70c5371703e.tar.xz nvim-lspconfig-c402bbd595d794bc4021310f4956b70c5371703e.tar.zst nvim-lspconfig-c402bbd595d794bc4021310f4956b70c5371703e.zip | |
[ZLS] initial commit
Diffstat (limited to 'lua/nvim_lsp')
| -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]]; + }; + }; +}; |
