Skip to content

Commit

Permalink
corfu: bind up/down in insert state
Browse files Browse the repository at this point in the history
Corfu already binds up/down in emacs state, but not in insert state.
Normally this is not a problem, but when using corfu in comint-mode like
with chatgpt-shell, up/down moves in the history instead of moving in
the corfu completions.
  • Loading branch information
LemonBreezes authored and condy0919 committed Mar 5, 2024
1 parent 311e3b9 commit 2e2be76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modes/corfu/evil-collection-corfu.el
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ This key theme variable may be refactored in the future so use with caution."
(kbd "C-k") 'corfu-previous
(kbd "M-j") 'corfu-next
(kbd "M-k") 'corfu-previous
(kbd "<down>") 'corfu-next
(kbd "<up>") 'corfu-previous
(kbd "<escape>") 'evil-collection-corfu-quit-and-escape))

;; https://github.com/minad/corfu#tab-and-go-completion
Expand Down

0 comments on commit 2e2be76

Please sign in to comment.