|
|
@ -239,7 +239,7 @@ M.setups = function()
|
|
|
|
local has_lsp, lspconfig = pcall(require, 'lspconfig')
|
|
|
|
local has_lsp, lspconfig = pcall(require, 'lspconfig')
|
|
|
|
if has_lsp then
|
|
|
|
if has_lsp then
|
|
|
|
local util = lspconfig.util
|
|
|
|
local util = lspconfig.util
|
|
|
|
return util.root_pattern('go.mod', '.git')(fname) or util.path.dirname(fname)
|
|
|
|
return util.root_pattern('go.mod', 'go.work', '.git')(fname) or util.path.dirname(fname)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
flags = { allow_incremental_sync = true, debounce_text_changes = 500 },
|
|
|
|
flags = { allow_incremental_sync = true, debounce_text_changes = 500 },
|
|
|
|