refactor(keys): allow H and L to work in visual mode

This commit is contained in:
sankalp committed 2025-10-07 16:59:19 +05:45
1 parent 43953265f5
commit e417c2108d
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -28,8 +28,8 @@ map({ 'i', 'c' }, '<C-f>', '<Right>')
map('n', '<leader>rL', vim.lsp.buf.rename, { desc = 'Rename Lsp Symbol' })
map('n', '`', "'", { noremap = true }) -- better marks
map('n', 'H', '^', { desc = 'Jump to line start' })
map('n', 'L', '$', { desc = 'Jump to line end' })
map({ 'n', 'v' }, 'H', '^', { desc = 'Move to the beginning of the line' })
map({ 'n', 'v' }, 'L', '$', { desc = 'Move to the end of the line' })
-- Visual overwrite paste
map({ 'v', 'x' }, 'p', '"_dP', opts)