Add go to neovim config

main
Buddy Sandidge 11 months ago
parent 8e60ae8d34
commit 924c36069f

@ -53,9 +53,11 @@ end
return {
'hrsh7th/nvim-cmp',
name = 'cmp',
config = config,
dependencies = {
'saadparwaiz1/cmp_luasnip',
'hrsh7th/cmp-nvim-lsp',
},
}

@ -0,0 +1,17 @@
local function config()
require('go').setup()
end
return {
'ray-x/go.nvim',
name = 'go',
import = 'plugins.go',
config = config,
event = {'CmdlineEnter'},
ft = {'go', 'gomod'},
dependencies = {
'ray-x/guihua.lua',
'lspconfig',
'treesitter',
},
}

@ -101,6 +101,7 @@ end
return {
'neovim/nvim-lspconfig',
name = 'lspconfig',
config = config,
dependencies = {
{ 'williamboman/mason.nvim', tag = 'v1.*' },

@ -85,6 +85,7 @@ end
return {
-- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter',
name = 'treesitter',
config = config,
build = ':TSUpdate',
dependencies = {

Loading…
Cancel
Save