28 lines
608 B
Lua
28 lines
608 B
Lua
return {
|
|
cmd = { "gopls" },
|
|
root_markers = { "go.mod" },
|
|
filetypes = { "go", "golang" },
|
|
settings = {
|
|
gopls = {
|
|
completeUnimported = true,
|
|
usePlaceholders = true,
|
|
["completion.matcher"] = "fuzzy",
|
|
["completion.completeFunctionCalls"] = true,
|
|
analyses = {
|
|
unusedparams = true,
|
|
staticcheck = true,
|
|
unusedwrite = true,
|
|
shadow = true,
|
|
},
|
|
["ui.inlayhint.hints"] = {
|
|
compositeLiteralFields = true,
|
|
constantValues = true,
|
|
parameterNames = true,
|
|
assignVariableTypes = true,
|
|
functionTypeParameters = true,
|
|
rangeVariableTypes = true,
|
|
},
|
|
},
|
|
},
|
|
}
|