aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/gopls.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/gopls.lua b/lua/lspconfig/server_configurations/gopls.lua
index 1b922f3e..f27033b7 100644
--- a/lua/lspconfig/server_configurations/gopls.lua
+++ b/lua/lspconfig/server_configurations/gopls.lua
@@ -20,7 +20,7 @@ return {
return clients[#clients].config.root_dir
end
end
- 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,
},