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:
Fernando Schauenburg 2022-12-16 08:49:11 +01:00
parent 460727c6c8
commit 576ded4646

View file

@ -32,10 +32,10 @@ configs.setup {
incremental_selection = { incremental_selection = {
enable = true, enable = true,
keymaps = { keymaps = {
init_selection = '<CR>', -- mapped in normal mode init_selection = 'gnn', -- mapped in normal mode
node_incremental = '<CR>', -- mapped in visual mode node_incremental = '<CR>', -- mapped in visual mode
node_decremental = '<BS>', -- 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
}, },
}, },