From 1e4a963ba4d00d559247b5fca827142958d4dbdf Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Tue, 15 Dec 2020 13:37:08 -0800 Subject: zig: nvim_lsp/zls.lua -> lspconfig/zls.lua --- lua/lspconfig/zls.lua | 22 ++++++++++++++++++++++ lua/nvim_lsp/zls.lua | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 lua/lspconfig/zls.lua delete mode 100644 lua/nvim_lsp/zls.lua (limited to 'lua') diff --git a/lua/lspconfig/zls.lua b/lua/lspconfig/zls.lua new file mode 100644 index 00000000..66668050 --- /dev/null +++ b/lua/lspconfig/zls.lua @@ -0,0 +1,22 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/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]]; + }; + }; +}; diff --git a/lua/nvim_lsp/zls.lua b/lua/nvim_lsp/zls.lua deleted file mode 100644 index 5f5742f7..00000000 --- a/lua/nvim_lsp/zls.lua +++ /dev/null @@ -1,22 +0,0 @@ -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]]; - }; - }; -}; -- cgit v1.2.3-70-g09d2