diff options
Diffstat (limited to 'lua/lang/zig.lua')
-rw-r--r-- | lua/lang/zig.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/lang/zig.lua b/lua/lang/zig.lua index d5b8a83d..06ae9197 100644 --- a/lua/lang/zig.lua +++ b/lua/lang/zig.lua @@ -7,6 +7,9 @@ M.config = function() args = { "fmt" }, stdin = false, }, + lsp = { + path = "zls", + }, } end @@ -41,6 +44,7 @@ M.lsp = function() -- Further custom install zls in -- https://github.com/zigtools/zls/wiki/Downloading-and-Building-ZLS require("lspconfig").zls.setup { + cmd = { O.lang.zig.lsp.path }, root_dir = require("lspconfig").util.root_pattern(".git", "build.zig", "zls.json"), on_attach = require("lsp").common_on_attach, } |