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" 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 -- Window controls
-- .............................................. -- ..............................................
{ {

View File

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