added mappings

This commit is contained in:
2025-09-18 09:57:08 +02:00
parent 0e3a98d36c
commit cf833a3ab4
3 changed files with 28 additions and 5 deletions

13
lua/mappings.lua Normal file
View File

@@ -0,0 +1,13 @@
-- Control + z : Annuler la dernière modification
vim.keymap.set("i", "<C-z>", "<C-o>:undo<CR>", {
desc = "Undo Last Edit",
noremap = true,
silent = true
})
-- Control + y : Rétablir la dernière modification
vim.keymap.set("i", "<C-y>", "<C-o>:redo<CR>", {
desc = "Redo Last Edit",
noremap = true,
silent = true
})