nviiim/after/plugin/treesitter.lua
Robert Morrison d032e3e274
chore(repo): First contentful commit
This is the first commit that actually adds files to the repo.
Yes it's a bad commit but now the major features are here
2023-03-03 17:11:36 +00:00

38 lines
536 B
Lua

if not pcall(require, 'nvim-treesitter') then
return
end
require('nvim-treesitter.configs').setup {
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>'
}
}
}