Files
nvim/lua/plugins/treesitter.lua
2025-11-25 08:02:50 +01:00

27 lines
838 B
Lua

return { -- Highlight, edit, and navigate code
{
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
opts = {
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
indent = { enable = true },
rainbow = {
enabled = true,
extended_mode = true,
max_file_lines = 4096,
},
},
},
{
'nvim-treesitter/nvim-treesitter-textobjects',
dependencies = { 'nvim-treesitter/nvim-treesitter' }, -- if you use the mini.nvim suite
},
}