summaryrefslogtreecommitdiffstats
path: root/.config/nvim/after/plugin/lsp.lua
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-27 18:40:10 +0100
committerJoe <rbo@gmx.us>2023-12-27 18:40:10 +0100
commit90421c4e731850f146a5d3bed430f648196dd014 (patch)
tree7da7bc9b9ff03ec1bbcb1c47fd17bcf628d5ee8d /.config/nvim/after/plugin/lsp.lua
parentup (diff)
downloaddotfiles-bsd-90421c4e731850f146a5d3bed430f648196dd014.tar.gz
dotfiles-bsd-90421c4e731850f146a5d3bed430f648196dd014.tar.bz2
dotfiles-bsd-90421c4e731850f146a5d3bed430f648196dd014.tar.xz
dotfiles-bsd-90421c4e731850f146a5d3bed430f648196dd014.tar.zst
dotfiles-bsd-90421c4e731850f146a5d3bed430f648196dd014.zip
up
Diffstat (limited to '.config/nvim/after/plugin/lsp.lua')
-rw-r--r--.config/nvim/after/plugin/lsp.lua26
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({