mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 06:27:14 +01:00
27 lines
838 B
Lua
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
|
|
},
|
|
}
|