Skip to content

Commit 2e2be76

Browse files
LemonBreezescondy0919
authored andcommitted
corfu: bind up/down in insert state
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.
1 parent 311e3b9 commit 2e2be76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modes/corfu/evil-collection-corfu.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ This key theme variable may be refactored in the future so use with caution."
8282
(kbd "C-k") 'corfu-previous
8383
(kbd "M-j") 'corfu-next
8484
(kbd "M-k") 'corfu-previous
85+
(kbd "<down>") 'corfu-next
86+
(kbd "<up>") 'corfu-previous
8587
(kbd "<escape>") 'evil-collection-corfu-quit-and-escape))
8688

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

0 commit comments

Comments
 (0)