gopls default setup

This commit is contained in:
ray-x 2021-06-18 08:50:49 +10:00
parent b60108978a
commit c818a97136
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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.