1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-01 23:19:25 +00:00

[neovim] Improve go development

This commit is contained in:
2022-10-23 12:35:25 +02:00
parent fa60eca975
commit 62deef62ec
3 changed files with 16 additions and 4 deletions

View File

@ -97,9 +97,9 @@ cmp.setup({
format = function(entry, vim_item)
vim_item.kind = kind_icons[vim_item.kind]
vim_item.menu = ({
nvim_lsp = "",
luasnip = "",
buffer = "",
nvim_lsp = "[lsp]",
luasnip = "[snip]",
buffer = "[local]",
path = "",
emoji = "",
})[entry.source.name]

View File

@ -0,0 +1,12 @@
return {
settings = {
gopls = {
experimentalPostfixCompletions = true,
analyses = {
unusedparams = true,
shadow = true,
},
staticcheck = true,
},
},
}