38 lines
506 B
Lua
38 lines
506 B
Lua
if not pcall(require, 'nvim-treesitter') then
|
|
return
|
|
end
|
|
|
|
local config = {
|
|
ensure_installed = {
|
|
"c",
|
|
"cpp",
|
|
"c_sharp",
|
|
"markdown",
|
|
"latex",
|
|
"go",
|
|
"rust"
|
|
},
|
|
sync_install = false,
|
|
|
|
highlight = {
|
|
enable = true,
|
|
},
|
|
|
|
rainbow = {
|
|
enable = true,
|
|
extended_mode = true,
|
|
max_file_lines = nil
|
|
},
|
|
|
|
incremental_selection = {
|
|
enable = true,
|
|
keymaps = {
|
|
init_selection = '<CR>',
|
|
scope_incremental = '<CR>',
|
|
node_incremental = '<TAB>',
|
|
node_decremental = '<S-TAB>'
|
|
}
|
|
}
|
|
}
|
|
|