nvim/lua/plugins/syntax.lua

32 lines
708 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 = {
enable = true,
keymaps = {
init_selection = "<C-Space>",
}
}, ]]--
}
},
}