-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
It's not clear how the JSON is supposed to be setup here, for example I have tried
{
"analyses": {
"fieldalignment": true,
"nilness": true,
"unusedparams": true,
"unusedwrite": true,
"unusedvariables": true
}
}
Also tried the above with an outer gopls and against with an outer settings but it does not get applied to the gopls server, when I manually do the settings, for example as below, I see the linting appear.
require("lvim.lsp.manager").setup("gopls", {
cmd = { "gopls", "serve" },
filetypes = { "go", "gomod" },
-- root_dir = util.root_pattern("go.work", "go.mod", ".git"),
settings = {
gopls = {
analyses = {
nilness = true,
unusedparams = true,
unusedwrite = true,
useany = true,
},
experimentalPostfixCompletions = true,
gofumpt = true,
staticcheck = true,
usePlaceholders = true,
},
},
})
Metadata
Metadata
Assignees
Labels
No labels