From 3091ea58359bb85f087499bd73fbc0a57a935c34 Mon Sep 17 00:00:00 2001 From: Al Berez Date: Fri, 15 Sep 2023 23:18:10 -0700 Subject: [PATCH] Keep visual selection when indent (#2382) When user indent visually selected text with `>>` or `<<` this change will keep visual selection. --- lua/core/mappings.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 14fd0db..dde5bfc 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -61,6 +61,8 @@ M.general = { v = { [""] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', "Move up", opts = { expr = true } }, [""] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', "Move down", opts = { expr = true } }, + ["<"] = { ""] = { ">gv", "Indent line" }, }, x = {