feat: perform undo and redo with `strg+z` in visual mode

This commit is contained in:
Sven Vogel 2024-11-08 00:07:51 +01:00
parent 58c4ff9b99
commit 3ff3218ea1
1 changed files with 2 additions and 2 deletions

View File

@ -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"