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"
|
||||
},
|
||||
{
|
||||
mode = { 'n', 'i' },
|
||||
mode = { 'n', 'v', 'i' },
|
||||
keys = '<C-z>',
|
||||
cmd = vim.cmd.undo,
|
||||
desc = "Undo last edit"
|
||||
},
|
||||
{
|
||||
mode = { 'n', 'i' },
|
||||
mode = { 'n', 'v', 'i' },
|
||||
keys = '<C-y>',
|
||||
cmd = vim.cmd.redo,
|
||||
desc = "Redo last edit that was undone"
|
||||
|
|
Loading…
Reference in New Issue