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:
parent
215aa2bb2f
commit
3091ea5835
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue