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:
parent
ba84ff50f2
commit
1ead91c553
1 changed files with 2 additions and 0 deletions
|
|
@ -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' })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue