gopls default setup

neovim_0_5
ray-x 3 years ago
parent b60108978a
commit c818a97136

@ -208,7 +208,7 @@ require.'navigator'.setup({
format_on_save = true, -- set to false to disasble lsp code format on save (if you are using prettier/efm/formater etc)
tsserver = {
filetypes = {'typescript'} -- disable javascript etc,
-- set to {} to disable the lspclient for all filetype
-- set to {} to disable the lspclient for all filetypes
},
gopls = { -- gopls setting
on_attach = function(client, bufnr) -- on_attach for gopls

@ -103,7 +103,8 @@ local setups = {
},
settings = {
gopls = {
flags = {allow_incremental_sync = true, debounce_text_changes = 500},
-- flags = {allow_incremental_sync = true, debounce_text_changes = 500},
-- not supported
analyses = {unusedparams = true, unreachable = false},
codelenses = {
generate = true, -- show the `go generate` lens.

Loading…
Cancel
Save