mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 18:38:00 +00:00
[neovim] Improve go development
This commit is contained in:
parent
fa60eca975
commit
62deef62ec
@ -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",
|
||||
|
@ -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]
|
||||
|
12
.config/nvim/lua/plugins/lsp/settings/gopls.lua
Normal file
12
.config/nvim/lua/plugins/lsp/settings/gopls.lua
Normal file
@ -0,0 +1,12 @@
|
||||
return {
|
||||
settings = {
|
||||
gopls = {
|
||||
experimentalPostfixCompletions = true,
|
||||
analyses = {
|
||||
unusedparams = true,
|
||||
shadow = true,
|
||||
},
|
||||
staticcheck = true,
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user