Files
cnix/home/extra/neovim/nvim/lua/plugins/treesitter.lua
2024-07-14 18:22:26 +02:00

26 lines
528 B
Lua

return {
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPost", "BufNewFile" },
main = "nvim-treesitter.configs",
dev = true,
opts = {
-- autotag = {
-- enable = true
-- },
highlight = {
-- `false` will disable the whole extension
enable = true,
additional_vim_regex_highlighting = false,
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<CR>",
node_incremental = "<CR>",
scope_incremental = "<S-CR>",
node_decremental = "<BS>",
},
},
},
}