Add incremental_selection option to treesitter config

This commit is contained in:
2021-11-25 15:02:20 +03:00
parent 7f56de9c8e
commit 7c346e77ec

View File

@@ -91,6 +91,15 @@ require("nvim-treesitter.configs").setup({
highlight = { highlight = {
enable = true enable = true
}, },
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<CR>",
scope_incremental = "<CR>",
node_incremental = "<TAB>",
node_decremental = "<S-TAB>"
}
},
rainbow = { rainbow = {
enable = true, enable = true,
extended_mode = true, extended_mode = true,