treesitter: enable incremental selection
This commit is contained in:
parent
ed66113969
commit
76f0de5e01
1 changed files with 8 additions and 0 deletions
8
init.lua
8
init.lua
|
|
@ -114,6 +114,14 @@ ts.setup({
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
ignore_install = {},
|
ignore_install = {},
|
||||||
modules = {}, -- not used, but it will silence lua_ls
|
modules = {}, -- not used, but it will silence lua_ls
|
||||||
|
incremental_selection = {
|
||||||
|
enable = true,
|
||||||
|
keymaps = {
|
||||||
|
init_selection = "<Enter>",
|
||||||
|
node_incremental = "<Enter>",
|
||||||
|
node_decremental = "<BS>",
|
||||||
|
},
|
||||||
|
},
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
"bash",
|
||||||
"c",
|
"c",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue