From 7e99cdca1d691bed9bff1f6f585c945ce32971e4 Mon Sep 17 00:00:00 2001 From: servostar Date: Fri, 8 Nov 2024 12:24:16 +0100 Subject: [PATCH] fix: shift not working properly in visual mode --- lua/config/keys.lua | 15 +++++++++++++++ lua/plugins/mini.lua | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/lua/config/keys.lua b/lua/config/keys.lua index a321af8..9177708 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -41,6 +41,21 @@ local keymaps = { desc = "Edit new, unnamed buffer" }, -- + -- Shift line(s) by one shiftwidth + -- .............................................. + { + mode = { 'v' }, + keys = '', + cmd = '>gv', + desc = "Shift selection in visual mode right" + }, + { + mode = { 'v' }, + keys = '', + cmd = '