forked from dineshsalunke/nvim-config
refactor: add go plugin
This commit is contained in:
parent
4119e1d801
commit
c71c03f498
20
lua/plugins/go.lua
Normal file
20
lua/plugins/go.lua
Normal file
@ -0,0 +1,20 @@
|
||||
return {
|
||||
{
|
||||
"ray-x/go.nvim",
|
||||
dependencies = { -- optional packages
|
||||
"ray-x/guihua.lua",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
opts = {
|
||||
-- lsp_keymaps = false,
|
||||
-- other options
|
||||
},
|
||||
config = function(_lp, opts)
|
||||
require("go").setup(opts)
|
||||
end,
|
||||
event = { "CmdlineEnter" },
|
||||
ft = { "go", "gomod" },
|
||||
build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries
|
||||
},
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user