starter/lua/plugins/nvim-treesitter.lua

22 lines
424 B
Lua
Raw Normal View History

2023-09-21 19:30:07 +08:00
return {
"nvim-treesitter/nvim-treesitter",
2024-03-29 21:57:29 +08:00
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
2024-11-09 17:21:51 +08:00
vim.list_extend(opts.ensure_installed, { "markdown", "markdown_inline", "latex" })
2024-03-29 21:57:29 +08:00
end
end,
setup = {
2023-09-21 19:30:07 +08:00
autotag = {
enable = true,
},
},
2024-03-29 21:57:29 +08:00
-- opts = {
-- autotag = {
-- enable = true,
-- },
-- },
2023-09-21 19:30:07 +08:00
dependencies = {
{ "windwp/nvim-ts-autotag" },
},
}