From c6f749e67c13342007f6aeaa4a81e6fdb00f529f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 11 Apr 2025 15:40:09 -0400 Subject: [PATCH] fix(default): don't override TAB when Corfu isn't visible Fixes TAB in many modes, like Org. --- modules/config/default/+evil-bindings.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index f36aa7615..06517dea7 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -56,7 +56,8 @@ '(((bound-and-true-p company-mode) #'company-indent-or-complete-common))) ,@(when (modulep! :completion corfu) - '(((bound-and-true-p corfu-mode) + '(((and (bound-and-true-p corfu-mode) + corfu--candidates) (if (derived-mode-p 'eshell-mode 'comint-mode) #'completion-at-point #'indent-for-tab-command)))))))