Add treesitter and go plugin
This commit is contained in:
12
lua/plugins/go.lua
Normal file
12
lua/plugins/go.lua
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
return {
|
||||||
|
"ray-x/go.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"ray-x/guihua.lua",
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
"nvim-treesitter/nvim-treesitter"
|
||||||
|
},
|
||||||
|
config = true,
|
||||||
|
event = "CmdlineEnter",
|
||||||
|
ft = {"go", "gomod"},
|
||||||
|
build = ':lua require("go.install").update_all_sync()'
|
||||||
|
}
|
||||||
@@ -8,5 +8,11 @@ return {
|
|||||||
{
|
{
|
||||||
"j-morano/buffer_manager.nvim",
|
"j-morano/buffer_manager.nvim",
|
||||||
requires = "nvim-lua/plenary.nvim"
|
requires = "nvim-lua/plenary.nvim"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ray-x/lsp_signature.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {},
|
||||||
|
config = function(_, opts) require "lsp_signature".setup(opts) end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
lua/plugins/treesitter.lua
Normal file
13
lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
return {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
build = ":TSUpdate",
|
||||||
|
config = function()
|
||||||
|
local configs = require("nvim-treesitter.configs")
|
||||||
|
|
||||||
|
configs.setup({
|
||||||
|
ensure_installed = { "c", "lua", "vimdoc", "go", "typescript" },
|
||||||
|
highlight = { enable = true },
|
||||||
|
indent = { enable = true }
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user