refactor(mappings): move undotree mapping

This commit is contained in:
Fabrice Mouhartem 2025-03-23 12:19:40 +01:00
parent 04a7ec0218
commit 98f079fb81
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7

View File

@ -61,11 +61,12 @@ keymap('n', '<leader>slf', ':set spelllang=fr<CR>',
-- Toggle hlsearch
keymap({ 'n', 'v' }, '<C-l>', ':set hlsearch!<CR>', { 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', '<', '<gv', { noremap = true, silent = true })
-- Undotree
keymap('n', 'U', vim.cmd.UndotreeToggle, { desc = "[U]ndotree toggle", silent = true, noremap = true })