mirror of
https://github.com/ray-x/navigator.lua
synced 2024-11-09 13:10:35 +00:00
gopls default setup
This commit is contained in:
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…
Reference in New Issue
Block a user