feat: perform undo and redo with `strg+z` in visual mode
This commit is contained in:
parent
58c4ff9b99
commit
3ff3218ea1
|
@ -20,13 +20,13 @@ local keymaps = {
|
||||||
desc = "Write buffer to disk"
|
desc = "Write buffer to disk"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
mode = { 'n', 'i' },
|
mode = { 'n', 'v', 'i' },
|
||||||
keys = '<C-z>',
|
keys = '<C-z>',
|
||||||
cmd = vim.cmd.undo,
|
cmd = vim.cmd.undo,
|
||||||
desc = "Undo last edit"
|
desc = "Undo last edit"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
mode = { 'n', 'i' },
|
mode = { 'n', 'v', 'i' },
|
||||||
keys = '<C-y>',
|
keys = '<C-y>',
|
||||||
cmd = vim.cmd.redo,
|
cmd = vim.cmd.redo,
|
||||||
desc = "Redo last edit that was undone"
|
desc = "Redo last edit that was undone"
|
||||||
|
|
Loading…
Reference in New Issue