mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-01-03 15:26:48 +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" })
|
use({ "theHamsta/nvim-dap-virtual-text", commit = "2971ce3e89b1711cc26e27f73d3f854b559a77d4" })
|
||||||
|
|
||||||
-- Go
|
-- Go
|
||||||
use({ "ray-x/go.nvim", commit = "7720ddcbeac7fee4a2d30079f3c3c9d26a1236b5" })
|
use({ "ray-x/go.nvim", commit = "6602986054b93660d297868781e1cbfd7ae8872a" })
|
||||||
use({
|
use({
|
||||||
"ray-x/guihua.lua",
|
"ray-x/guihua.lua",
|
||||||
commit = "2fce8a8b462cf6599d9422efb157773126e1c7ce",
|
commit = "2fce8a8b462cf6599d9422efb157773126e1c7ce",
|
||||||
|
@ -97,9 +97,9 @@ cmp.setup({
|
|||||||
format = function(entry, vim_item)
|
format = function(entry, vim_item)
|
||||||
vim_item.kind = kind_icons[vim_item.kind]
|
vim_item.kind = kind_icons[vim_item.kind]
|
||||||
vim_item.menu = ({
|
vim_item.menu = ({
|
||||||
nvim_lsp = "",
|
nvim_lsp = "[lsp]",
|
||||||
luasnip = "",
|
luasnip = "[snip]",
|
||||||
buffer = "",
|
buffer = "[local]",
|
||||||
path = "",
|
path = "",
|
||||||
emoji = "",
|
emoji = "",
|
||||||
})[entry.source.name]
|
})[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