30 lines
648 B
Lua
30 lines
648 B
Lua
return {
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
event = { "BufReadPre", "BufNewFile" },
|
|
build = ":TSUpdate",
|
|
opts = {
|
|
ensure_installed = {
|
|
-- must be installed
|
|
"c", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline",
|
|
|
|
-- C
|
|
"cmake",
|
|
},
|
|
sync_install = false,
|
|
auto_install = false,
|
|
highlight = {
|
|
enable = true,
|
|
additional_vim_regex_higlighting = false,
|
|
},
|
|
indent = {
|
|
enable = true,
|
|
},
|
|
incremental_selection = {
|
|
init_selection = "<C-Space>",
|
|
|
|
},
|
|
}
|
|
}
|
|
}
|