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 = {
enable = true
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<CR>",
scope_incremental = "<CR>",
node_incremental = "<TAB>",
node_decremental = "<S-TAB>"
}
},
rainbow = {
enable = true,
extended_mode = true,