From 3ff3218ea1a20ffd8fb892f0d5895f2d98a95c4c Mon Sep 17 00:00:00 2001 From: servostar Date: Fri, 8 Nov 2024 00:07:51 +0100 Subject: [PATCH] feat: perform undo and redo with `strg+z` in visual mode --- lua/config/keys.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/config/keys.lua b/lua/config/keys.lua index 7df6198..a321af8 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -20,13 +20,13 @@ local keymaps = { desc = "Write buffer to disk" }, { - mode = { 'n', 'i' }, + mode = { 'n', 'v', 'i' }, keys = '', cmd = vim.cmd.undo, desc = "Undo last edit" }, { - mode = { 'n', 'i' }, + mode = { 'n', 'v', 'i' }, keys = '', cmd = vim.cmd.redo, desc = "Redo last edit that was undone"