diff --git a/.config/nvim/lua/core/plugins.lua b/.config/nvim/lua/core/plugins.lua index 0292204..a1a142f 100644 --- a/.config/nvim/lua/core/plugins.lua +++ b/.config/nvim/lua/core/plugins.lua @@ -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", diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index c77376d..e481d4d 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -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] diff --git a/.config/nvim/lua/plugins/lsp/settings/gopls.lua b/.config/nvim/lua/plugins/lsp/settings/gopls.lua new file mode 100644 index 0000000..ee2189f --- /dev/null +++ b/.config/nvim/lua/plugins/lsp/settings/gopls.lua @@ -0,0 +1,12 @@ +return { + settings = { + gopls = { + experimentalPostfixCompletions = true, + analyses = { + unusedparams = true, + shadow = true, + }, + staticcheck = true, + }, + }, +}