nviiim/after/plugin/treesitter.lua
Robert Morrison 73f9fd1526
chore(treesitter): clean up treesitter
neaten up the treesitter code. superficial change
2023-05-05 19:10:41 +01:00

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>'
}
}
}