Skip to content

Commit

Permalink
Fix corfu-scroll-up/-down being inverted
Browse files Browse the repository at this point in the history
Corfu uses the emacs definition of scroll-up (moving the text down) which is
inverted to what vim uses.
  • Loading branch information
ghosty141 authored and condy0919 committed Feb 23, 2024
1 parent 29212d1 commit 16d2cec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modes/corfu/evil-collection-corfu.el
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ This key theme variable may be refactored in the future so use with caution."

(when evil-want-C-u-scroll
(evil-collection-define-key 'insert 'corfu-map
(kbd "C-u") 'corfu-scroll-up))
(kbd "C-d") 'corfu-scroll-up))
(when evil-want-C-d-scroll
(evil-collection-define-key 'insert 'corfu-map
(kbd "C-d") 'corfu-scroll-down))
(kbd "C-u") 'corfu-scroll-down))

(advice-add 'corfu--setup :after (lambda (&rest _) (evil-normalize-keymaps)))
(advice-add 'corfu--teardown :after (lambda (&rest _) (evil-normalize-keymaps))))
Expand Down

0 comments on commit 16d2cec

Please sign in to comment.