mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: go: better config for gopls
This commit is contained in:
parent
497d63f983
commit
fe81883c32
1 changed files with 17 additions and 0 deletions
|
|
@ -6,8 +6,25 @@ local lspservers = {
|
|||
unusedvariable = true,
|
||||
unusedwrite = true,
|
||||
useany = true,
|
||||
fieldalignment = true
|
||||
},
|
||||
gofumpt = true,
|
||||
hoverKind = 'SynopsisDocumentation',
|
||||
codelenses = {
|
||||
gc_details = false,
|
||||
generate = true,
|
||||
regenerate_cgo = true,
|
||||
run_govulncheck = true,
|
||||
test = true,
|
||||
tidy = true,
|
||||
upgrade_dependency = true,
|
||||
vendor = true,
|
||||
},
|
||||
hints = {
|
||||
parameterNames = true
|
||||
},
|
||||
completeUnimported = true,
|
||||
semanticTokens = true
|
||||
},
|
||||
},
|
||||
on_save = function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue