updates gopls setting

pull/450/head
ray-x 2 months ago
parent abd282564a
commit ae58327c9e

@ -299,15 +299,24 @@ M.setups = function()
preselectSupport = true, preselectSupport = true,
insertReplaceSupport = true, insertReplaceSupport = true,
labelDetailsSupport = true, labelDetailsSupport = true,
snippetSupport = true, snippetSupport = vim.snippet and true or false,
resolveSupport = { resolveSupport = {
properties = { properties = {
'edit',
'documentation', 'documentation',
'details', 'details',
'additionalTextEdits', 'additionalTextEdits',
}, },
}, },
}, },
completionList = {
itemDefaults = {
'editRange',
'insertTextFormat',
'insertTextMode',
'data',
},
},
contextSupport = true, contextSupport = true,
dynamicRegistration = true, dynamicRegistration = true,
}, },

@ -198,10 +198,10 @@ return {
'--fix=false', '--fix=false',
'--out-format=json', '--out-format=json',
} }
for _, linter in ipairs(_GO_NVIM_CFG.null_ls.golangci_lint.disable) do for _, linter in ipairs(_GO_NVIM_CFG.null_ls.golangci_lint.disable or {}) do
table.insert(args, '--disable=' .. linter) table.insert(args, '--disable=' .. linter)
end end
for _, linter in ipairs(_GO_NVIM_CFG.null_ls.golangci_lint.enable) do for _, linter in ipairs(_GO_NVIM_CFG.null_ls.golangci_lint.enable or {}) do
table.insert(args, '--enable=' .. linter) table.insert(args, '--enable=' .. linter)
end end
args = vim.list_extend(args, { '--path-prefix', '$ROOT', '$FILENAME' }) args = vim.list_extend(args, { '--path-prefix', '$ROOT', '$FILENAME' })

Loading…
Cancel
Save