From 98f079fb8187ae04df756d38858e5fa9b01f9b6a Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Sun, 23 Mar 2025 12:19:40 +0100 Subject: [PATCH] refactor(mappings): move undotree mapping --- lua/mappings.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/mappings.lua b/lua/mappings.lua index 98dbbfd..2f8a08d 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -61,11 +61,12 @@ keymap('n', 'slf', ':set spelllang=fr', -- Toggle hlsearch keymap({ 'n', 'v' }, '', ':set hlsearch!', { silent = true, noremap = true }) +-- Undotree +keymap('n', 'U', vim.cmd.UndotreeToggle, { desc = "[U]ndotree toggle", silent = true, noremap = true }) + -- [[ Some standard behaviour changes ]] -- Y is mapped to y$, remap to yg_ keymap('n', 'Y', 'yg_', { noremap = true, silent = true, desc = '[Y]ank the line' }) -- {>,<} preserve the selection keymap('v', '>', '>gv', { noremap = true, silent = true }) keymap('v', '<', '