From 576ded4646d75e975312f494d175d36d2952accf Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 16 Dec 2022 08:49:11 +0100 Subject: [PATCH] vim: change keymap to start treesitter incremental selection The previous '' 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". --- config/nvim/after/plugin/treesitter.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/nvim/after/plugin/treesitter.lua b/config/nvim/after/plugin/treesitter.lua index 1336242..5082994 100644 --- a/config/nvim/after/plugin/treesitter.lua +++ b/config/nvim/after/plugin/treesitter.lua @@ -32,10 +32,10 @@ configs.setup { incremental_selection = { enable = true, keymaps = { - init_selection = '', -- mapped in normal mode + init_selection = 'gnn', -- mapped in normal mode node_incremental = '', -- mapped in visual mode node_decremental = '', -- mapped in visual mode - scope_incremental = nil, -- disbaled, normally mapped in visual mode + scope_incremental = nil, -- disabled, normally mapped in visual mode }, },