From c402bbd595d794bc4021310f4956b70c5371703e Mon Sep 17 00:00:00 2001 From: Ogromny Date: Thu, 24 Sep 2020 08:57:05 +0200 Subject: [ZLS] initial commit --- lua/nvim_lsp/zls.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lua/nvim_lsp/zls.lua (limited to 'lua/nvim_lsp') 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]]; + }; + }; +}; -- cgit v1.2.3-70-g09d2