diff options
-rw-r--r-- | completion.org | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/completion.org b/completion.org index 0e52b56..6f09336 100644 --- a/completion.org +++ b/completion.org @@ -137,6 +137,12 @@ ("C-<return>" . corfu-insert) ("\r" . jao-corfu-quit-or-insert))) + (defun corfu-in-minibuffer () + "Enable Corfu in the minibuffer only if Mct/Vertico are not active." + (unless (bound-and-true-p mct--active) (corfu-mode 1))) + + (add-hook 'minibuffer-setup-hook #'corfu-in-minibuffer 1) + (corfu-global-mode 1) #+end_src |