diff options
Diffstat (limited to '.config/nvim/after/plugin/lsp.lua')
-rw-r--r-- | .config/nvim/after/plugin/lsp.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 767dec5..b4179d9 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -39,6 +39,32 @@ require('mason-lspconfig').setup({ }, }) +-- langs + +require('lspconfig').gopls.setup({ + settings = { + gopls = { + analyses = { + unusedparams = true, + }, + codelenses = { + generate = true, + gc_details = true, + }, + annotations = { + bounds = true, + escape = true, + inline = true, + }, + staticcheck = true, + gofumpt = true, + }, + }, +}) + + +-- cmp + local cmp = require('cmp') local cmp_select = { behavior = cmp.SelectBehavior.Select } cmp.setup({ |