From 2e2be761f7aef894ee1025238c5b9205670281aa Mon Sep 17 00:00:00 2001 From: StrawberryTea Date: Sat, 2 Mar 2024 22:20:40 -0600 Subject: [PATCH] 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. --- modes/corfu/evil-collection-corfu.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modes/corfu/evil-collection-corfu.el b/modes/corfu/evil-collection-corfu.el index bc91e9f..8c219bd 100644 --- a/modes/corfu/evil-collection-corfu.el +++ b/modes/corfu/evil-collection-corfu.el @@ -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 "") 'corfu-next + (kbd "") 'corfu-previous (kbd "") 'evil-collection-corfu-quit-and-escape)) ;; https://github.com/minad/corfu#tab-and-go-completion