19 lines
345 B
Lua
Raw Normal View History

2023-07-29 20:15:47 +02:00
return {
"nvim-treesitter/nvim-treesitter",
2023-08-19 19:22:56 +02:00
event = { "BufReadPost", "BufNewFile" },
build = ":TSUpdate",
2023-07-29 20:15:47 +02:00
opts = {
ensure_installed = {
2024-01-21 17:14:47 +01:00
"go",
"gomod",
"gowork",
"gosum",
2023-07-29 20:15:47 +02:00
},
2023-08-19 19:22:56 +02:00
highlight = { enable = true },
indent = { enable = true },
2023-07-29 20:15:47 +02:00
},
2023-08-19 19:22:56 +02:00
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
2023-07-29 20:15:47 +02:00
}