1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 12:48:01 +00:00

[neovim] Improve go development

This commit is contained in:
Daniel Carrillo 2022-10-23 12:35:25 +02:00
parent fa60eca975
commit 62deef62ec
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
3 changed files with 16 additions and 4 deletions

View File

@ -106,7 +106,7 @@ return packer.startup(function(use)
use({ "theHamsta/nvim-dap-virtual-text", commit = "2971ce3e89b1711cc26e27f73d3f854b559a77d4" })
-- Go
use({ "ray-x/go.nvim", commit = "7720ddcbeac7fee4a2d30079f3c3c9d26a1236b5" })
use({ "ray-x/go.nvim", commit = "6602986054b93660d297868781e1cbfd7ae8872a" })
use({
"ray-x/guihua.lua",
commit = "2fce8a8b462cf6599d9422efb157773126e1c7ce",

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,
},
},
}