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.
This commit is contained in:
StrawberryTea 2024-03-02 22:20:40 -06:00 committed by Youmu
parent 311e3b9ecb
commit 2e2be761f7
1 changed files with 2 additions and 0 deletions

View File

@ -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