From 90421c4e731850f146a5d3bed430f648196dd014 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 27 Dec 2023 18:40:10 +0100 Subject: up --- .config/nvim/after/plugin/lsp.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to '.config') 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({ -- cgit v1.2.3