Add go to neovim config
This commit is contained in:
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',
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
17
dot_config/nvim/lua/plugins/go.lua
Normal file
17
dot_config/nvim/lua/plugins/go.lua
Normal file
@ -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…
Reference in New Issue
Block a user