feat(mappings): visual mapping for >/<

- Inspired by https://github.com/Nuclear-Squid/dotFiles/blob/master/nvim/init.lua#L169-L170
This commit is contained in:
Fabrice Mouhartem 2025-02-18 22:45:10 +01:00
parent c15198b661
commit 86a58e267e
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7

View File

@ -64,3 +64,6 @@ keymap({ 'n', 'v' }, '<C-l>', ':set hlsearch!<CR>', { silent = true, noremap = t
-- [[ 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})