fix: shift not working properly in visual mode
This commit is contained in:
parent
3ff3218ea1
commit
7e99cdca1d
|
@ -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
|
||||||
-- ..............................................
|
-- ..............................................
|
||||||
{
|
{
|
||||||
|
|
|
@ -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>',
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue