fix: shift not working properly in visual mode

This commit is contained in:
Sven Vogel 2024-11-08 12:24:16 +01:00
parent 3ff3218ea1
commit 7e99cdca1d
2 changed files with 17 additions and 2 deletions

View File

@ -41,6 +41,21 @@ local keymaps = {
desc = "Edit new, unnamed buffer"
},
--
-- Shift line(s) by one shiftwidth
-- ..............................................
{
mode = { 'v' },
keys = '<tab>',
cmd = '>gv',
desc = "Shift selection in visual mode right"
},
{
mode = { 'v' },
keys = '<S-tab>',
cmd = '<gv',
desc = "Shift selection in visual right"
},
--
-- Window controls
-- ..............................................
{

View File

@ -32,8 +32,8 @@ return {
opts = {
mappings = {
-- Move visual selection in Visual mode. Defaults are Alt (Meta) + hjkl.
left = '<S-tab>',
right = '<tab>',
left = nil,
right = nil,
down = '<C-down>',
up = '<C-up>',