Add treesitter and go plugin

This commit is contained in:
Saeed Afzal
2024-08-02 09:12:49 +01:00
parent 6d5971c9a1
commit 263a774e31
3 changed files with 31 additions and 0 deletions

12
lua/plugins/go.lua Normal file
View 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()'
}

View File

@@ -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
} }
} }

View 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
}