Keep visual selection when indent (#2382)

When user indent visually selected text with `>>` or `<<` this change will keep visual selection.
This commit is contained in:
Al Berez 2023-09-15 23:18:10 -07:00 committed by GitHub
parent 215aa2bb2f
commit 3091ea5835
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,6 +61,8 @@ M.general = {
v = {
["<Up>"] = { 'v:count || mode(1)[0:1] == "no" ? "k" : "gk"', "Move up", opts = { expr = true } },
["<Down>"] = { 'v:count || mode(1)[0:1] == "no" ? "j" : "gj"', "Move down", opts = { expr = true } },
["<"] = { "<gv", "Indent line" },
[">"] = { ">gv", "Indent line" },
},
x = {