summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modes/corfu/evil-collection-corfu.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/modes/corfu/evil-collection-corfu.el b/modes/corfu/evil-collection-corfu.el
index 378874a..f70dedc 100644
--- a/modes/corfu/evil-collection-corfu.el
+++ b/modes/corfu/evil-collection-corfu.el
@@ -126,6 +126,9 @@ This key theme variable may be refactored in the future so use with caution."
"If we made a selection during `corfu' completion, select it.")
;; FIXME: Not sure why we need to use `define-key' here instead of
;; `evil-collection-define-key';.
+ (when (evil-collection-can-bind-key "<return>")
+ (define-key corfu-map (kbd "<return>")
+ evil-collection-corfu-insert-or-next-line))
(when (evil-collection-can-bind-key "RET")
(define-key corfu-map (kbd "RET")
evil-collection-corfu-insert-or-next-line)))