neovim: change root dir for golangci_lint ls

This commit is contained in:
2024-03-11 19:44:49 +03:00
parent 4cd9417afa
commit 426ca9a10b

View File

@@ -100,6 +100,10 @@ for _, server in ipairs(servers) do
opts.filetypes = { "html", "css", "scss", "javascripreact", "typescriptreact", "astro" } opts.filetypes = { "html", "css", "scss", "javascripreact", "typescriptreact", "astro" }
end end
if server == "golangci_lint_ls" then
opts.root_dir = util.root_pattern("go.mod", ".git")
end
if server == "gopls" then if server == "gopls" then
-- https://github.com/golang/tools/blob/master/gopls/doc/settings.md -- https://github.com/golang/tools/blob/master/gopls/doc/settings.md
opts.settings = { opts.settings = {