go.nvim
go.nvim copied to clipboard
Config option to disable method placeholders for gopls
As the title says, I would like to disable this feature for myself, how can I do this?
Could you share a screen shot. I am not 100% sure what you mean by method placeholders
I mean method parameters placeholder of course
using this: go.setup({ settings = { gopls = { usePlaceholders = true, } })
Looks like, did not help
@alphatroya this works for me, should be inside lsp_cfg like
go.setup({
lsp_cfg = {
capabilities = capabilities,
settings = {
gopls = {
usePlaceholders = false,
},
},
},
lsp_on_attach = on_attach,
})
Thanks, that solve the problem!