kickstart.nvim/lua/plugins/treesitter.lua

45 lines
860 B
Lua

return {
{
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
dependencies = {
'nvim-treesitter/nvim-treesitter-textobjects',
},
opts = {
ensure_installed = {
'bash',
'c',
'cpp',
'diff',
'html',
'lua',
'luadoc',
'markdown',
'markdown_inline',
'query',
'vim',
'vimdoc',
'python',
'javascript',
'typescript',
'tsx',
'json',
'css',
},
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = { 'ruby' },
},
indent = { enable = true, disable = { 'ruby' } },
fold = {
enable = false,
},
},
},
{
'nvim-treesitter/nvim-treesitter-context',
opts = { max_lines = 2 },
},
}