1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim/lua/user/keymaps.lua: change keymaps for jump next/prev paragraph

This commit is contained in:
Henrik Hautakoski 2025-01-17 22:12:39 +01:00
parent ba84ff50f2
commit 1ead91c553

View file

@ -76,6 +76,8 @@ vim.keymap.set('n', '<S-Down>', 'v<Down>')
vim.keymap.set('v', '<S-Up>', '<Up>')
vim.keymap.set('v', '<S-Down>', '<Down>')
vim.keymap.set('n', '}', '}zz', { silent = true, desc = 'jump to next paragraph' })
vim.keymap.set('n', '{', '{zz', { silent = true, desc = 'jump to previous paragraph' })
-- Make half page jumps stay in the center of screen
vim.keymap.set('n', '<C-u>', '<C-u>zz', { silent = true, desc = 'jump half a page up' })