vim: change keymap to start treesitter incremental selection
The previous '<CR>' mapping was causing too many false starts of the incremental selection, especially because of the way I have my keyboard configured, where the Ctrl and Enter keys are "shared".
This commit is contained in:
parent
460727c6c8
commit
576ded4646
1 changed files with 2 additions and 2 deletions
|
@ -32,10 +32,10 @@ configs.setup {
|
|||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = '<CR>', -- mapped in normal mode
|
||||
init_selection = 'gnn', -- mapped in normal mode
|
||||
node_incremental = '<CR>', -- mapped in visual mode
|
||||
node_decremental = '<BS>', -- mapped in visual mode
|
||||
scope_incremental = nil, -- disbaled, normally mapped in visual mode
|
||||
scope_incremental = nil, -- disabled, normally mapped in visual mode
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue