updates gopls setting

pull/450/head
ray-x 1 month ago
parent abd282564a
commit ae58327c9e

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

@ -198,10 +198,10 @@ return {
'--fix=false',
'--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)
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)
end
args = vim.list_extend(args, { '--path-prefix', '$ROOT', '$FILENAME' })

Loading…
Cancel
Save