dots/config/nvim/lua/neoconf/lazy/treesitter.lua
2026-06-05 13:11:08 +02:00

39 lines
915 B
Lua

return {
{ -- Highlight, edit, and navigate code
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
opts = {
ensure_installed = {
"c++",
"matlab",
"regex",
"octave",
"yaml",
"python",
"latex",
"typst",
"zsh",
"markdown_inline",
"typst",
"comment",
"bash",
"c",
"html",
"lua",
"markdown",
"vim",
"vimdoc",
},
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
-- If you are experiencing weird indenting issues, add the language to
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
additional_vim_regex_highlighting = { "ruby", "markdown" },
},
indent = { enable = true, disable = { "ruby, markdown" } },
},
},
}