refactor(mappings): move undotree mapping
This commit is contained in:
parent
04a7ec0218
commit
98f079fb81
@ -61,11 +61,12 @@ keymap('n', '<leader>slf', ':set spelllang=fr<CR>',
|
|||||||
-- Toggle hlsearch
|
-- Toggle hlsearch
|
||||||
keymap({ 'n', 'v' }, '<C-l>', ':set hlsearch!<CR>', { silent = true, noremap = true })
|
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 ]]
|
-- [[ Some standard behaviour changes ]]
|
||||||
-- Y is mapped to y$, remap to yg_
|
-- Y is mapped to y$, remap to yg_
|
||||||
keymap('n', 'Y', 'yg_', { noremap = true, silent = true, desc = '[Y]ank the line' })
|
keymap('n', 'Y', 'yg_', { noremap = true, silent = true, desc = '[Y]ank the line' })
|
||||||
-- {>,<} preserve the selection
|
-- {>,<} preserve the selection
|
||||||
keymap('v', '>', '>gv', { noremap = true, silent = true })
|
keymap('v', '>', '>gv', { noremap = true, silent = true })
|
||||||
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 })
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user