refactor(treesitter)!: use <bs> in visual mode to shrink delection. Fixes #71

This commit is contained in:
Folke Lemaitre
2023-01-17 14:44:45 +01:00
parent 201a3d171e
commit ba0040230e

View File

@ -6,7 +6,7 @@ return {
event = "BufReadPost",
keys = {
{ "<c-space>", desc = "Increment selection" },
{ "<c-bs>", desc = "Schrink selection" },
{ "<bs>", desc = "Schrink selection", mode = "x" },
},
---@type TSConfig
opts = {
@ -35,8 +35,8 @@ return {
keymaps = {
init_selection = "<C-space>",
node_incremental = "<C-space>",
scope_incremental = false,
node_decremental = "<C-bs>",
scope_incremental = "<nop>",
node_decremental = "<bs>",
},
},
},