aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/gopls.lua4
-rw-r--r--lua/lspconfig/server_configurations/helm_ls.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/lua/lspconfig/server_configurations/gopls.lua b/lua/lspconfig/server_configurations/gopls.lua
index 8e899d43..fa84c40c 100644
--- a/lua/lspconfig/server_configurations/gopls.lua
+++ b/lua/lspconfig/server_configurations/gopls.lua
@@ -5,7 +5,7 @@ return {
cmd = { 'gopls' },
filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
root_dir = function(fname)
- return util.root_pattern 'go.work'(fname) or util.root_pattern('go.mod', '.git')(fname)
+ return util.root_pattern('go.work', 'go.mod', '.git')(fname)
end,
single_file_support = true,
},
@@ -16,7 +16,7 @@ https://github.com/golang/tools/tree/master/gopls
Google's lsp server for golang.
]],
default_config = {
- root_dir = [[root_pattern("go.mod", ".git")]],
+ root_dir = [[root_pattern("go.work", "go.mod", ".git")]],
},
},
}
diff --git a/lua/lspconfig/server_configurations/helm_ls.lua b/lua/lspconfig/server_configurations/helm_ls.lua
index 4e357dd6..b5bdbbd6 100644
--- a/lua/lspconfig/server_configurations/helm_ls.lua
+++ b/lua/lspconfig/server_configurations/helm_ls.lua
@@ -27,7 +27,7 @@ The default `cmd` assumes that the `helm_ls` binary can be found in `$PATH`.
If need Helm file highlight use [vim-helm](https://github.com/towolf/vim-helm) plugin.
]],
default_config = {
- root_dir = [[root_pattern("Chart.yaml)]],
+ root_dir = [[root_pattern("Chart.yaml")]],
},
},
}