Skip to content

Commit

Permalink
feat(plugins): center view after scrolling with <C-u> and <C-d>
Browse files Browse the repository at this point in the history
  • Loading branch information
ecosse3 committed Jan 1, 2023
1 parent 19ab421 commit 4ee1c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/plugins/cinnamon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ require('cinnamon').setup {
-- ╰──────────────────────────────────────────────────────────╯

-- Half-window movements:
vim.keymap.set({ 'n', 'x', 'i' }, '<C-u>', "<Cmd>lua Scroll('<C-u>')<CR>")
vim.keymap.set({ 'n', 'x', 'i' }, '<C-d>', "<Cmd>lua Scroll('<C-d>')<CR>")
vim.keymap.set({ 'n', 'x', 'i' }, '<C-u>', "<Cmd>lua Scroll('<C-u>')<CR>zz")
vim.keymap.set({ 'n', 'x', 'i' }, '<C-d>', "<Cmd>lua Scroll('<C-d>')<CR>zz")

-- Page movements:
vim.keymap.set('n', '<PageUp>', "<Cmd>lua Scroll('<C-b>', 1, 1)<CR>")
Expand Down

0 comments on commit 4ee1c5c

Please sign in to comment.