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