diff options
Diffstat (limited to 'lua/lspconfig/server_configurations/zls.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/zls.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/server_configurations/zls.lua b/lua/lspconfig/server_configurations/zls.lua index d890fb63..d92a797d 100644 --- a/lua/lspconfig/server_configurations/zls.lua +++ b/lua/lspconfig/server_configurations/zls.lua @@ -4,7 +4,7 @@ return { default_config = { cmd = { 'zls' }, filetypes = { 'zig', 'zir' }, - root_dir = util.root_pattern('zls.json', '.git'), + root_dir = util.root_pattern('zls.json', 'build.zig', '.git'), single_file_support = true, }, docs = { @@ -14,7 +14,7 @@ https://github.com/zigtools/zls Zig LSP implementation + Zig Language Server ]], default_config = { - root_dir = [[util.root_pattern("zls.json", ".git")]], + root_dir = [[util.root_pattern("zls.json", "build.zig", ".git")]], }, }, } |
