2025-05-21 16:25:20 -07:00

48 lines
925 B
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
require("nvim-treesitter.configs").setup({
ensure_installed = {
"css",
"dockerfile",
"html",
"javascript",
"json",
"lua",
"make",
"pug",
"scss",
"typescript",
"vim",
"vimdoc",
"vue",
"yaml",
},
modules = {},
auto_install = false,
ignore_install = {},
highlight = { enable = true },
indent = { enable = true },
sync_install = false,
})
require("nvim-treesitter.configs").setup({
ensure_installed = {
"java",
},
modules = {},
auto_install = false,
ignore_install = {},
highlight = { enable = true },
indent = { enable = true },
sync_install = false,
custom_captures = {
-- Highlight @Test annotations
["annotation.identifier"] = "TSAnnotation",
},
})
end,
},
}