Add go to neovim config
This commit is contained in:
parent
8e60ae8d34
commit
924c36069f
@ -53,9 +53,11 @@ end
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
|
name = 'cmp',
|
||||||
config = config,
|
config = config,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'saadparwaiz1/cmp_luasnip',
|
'saadparwaiz1/cmp_luasnip',
|
||||||
'hrsh7th/cmp-nvim-lsp',
|
'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 {
|
return {
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
|
name = 'lspconfig',
|
||||||
config = config,
|
config = config,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ 'williamboman/mason.nvim', tag = 'v1.*' },
|
{ 'williamboman/mason.nvim', tag = 'v1.*' },
|
||||||
|
|||||||
@ -85,6 +85,7 @@ end
|
|||||||
return {
|
return {
|
||||||
-- Highlight, edit, and navigate code
|
-- Highlight, edit, and navigate code
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
name = 'treesitter',
|
||||||
config = config,
|
config = config,
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user