diff options
| author | StrawberryTea <look@strawberrytea.xyz> | 2024-03-02 22:20:40 -0600 |
|---|---|---|
| committer | Youmu <condy0919@gmail.com> | 2024-03-06 00:32:57 +0800 |
| commit | 2e2be761f7aef894ee1025238c5b9205670281aa (patch) | |
| tree | f9149e45b6512b7972ae7405183c14511d57cc12 | |
| parent | 311e3b9ecb08bdc45eab431d3ddfb2ec5217844b (diff) | |
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.
| -rw-r--r-- | modes/corfu/evil-collection-corfu.el | 2 |
1 files changed, 2 insertions, 0 deletions
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 "<down>") 'corfu-next + (kbd "<up>") 'corfu-previous (kbd "<escape>") 'evil-collection-corfu-quit-and-escape)) ;; https://github.com/minad/corfu#tab-and-go-completion |
