fix(corfu): global-corfu-minibuffer predicate not respected

As mentioned in #7977, `global-corfu-modes` overrides any predicate
function in `global-corfu-minibuffer`. This is a stopgap until the issue
is resolved upstream.

Fix: #7977
Close: #8039
Co-authored-by: LemonBreezes <LemonBreezes@users.noreply.github.com>
This commit is contained in:
Henrik Lissner 2024-09-02 16:59:29 -04:00
parent f81798eb0a
commit 84230a437d
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -43,11 +43,16 @@ If any return non-nil, `corfu-auto' will not invoke as-you-type completion.")
(setq corfu-auto t
corfu-auto-delay 0.24
corfu-auto-prefix 2
global-corfu-modes '((not erc-mode
global-corfu-modes
'((not erc-mode
circe-mode
help-mode
gud-mode
vterm-mode)
vterm-mode
;; Needed for `+corfu-want-minibuffer-completion' to be
;; respected. See #7977.
minibuffer-mode
minibuffer-inactive-mode)
t)
corfu-cycle t
corfu-preselect 'prompt