nvim/lua/plugins/syntax.lua

32 lines
708 B
Lua
Raw Normal View History

2024-08-16 12:22:24 +02:00
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,
},
2024-08-21 17:56:21 +02:00
--[[ incremental_selection = {
enable = true,
keymaps = {
init_selection = "<C-Space>",
}
}, ]]--
2024-08-16 12:22:24 +02:00
}
2024-08-21 17:56:21 +02:00
},
2024-08-16 12:22:24 +02:00
}