aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp
diff options
context:
space:
mode:
authorOgromny <ogromnycoding@gmail.com>2020-09-24 08:57:05 +0200
committerOgromny <ogromnycoding@gmail.com>2020-09-24 08:57:05 +0200
commitc402bbd595d794bc4021310f4956b70c5371703e (patch)
tree3ce14af86e382b92fce2c8907265cbd03a049ff3 /lua/nvim_lsp
parent[docgen] Update README.md (diff)
downloadnvim-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.lua20
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]];
+ };
+ };
+};