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', '<', '