fix(corfu): gate corfu-terminal config

If :completion corfu users don't have :os tty enabled, loading
corfu-terminal will throw an error in TTY Emacs.
This commit is contained in:
Henrik Lissner 2024-03-19 21:34:03 -04:00 committed by Yann Esposito (Yogsototh)
parent 6e60a5921c
commit 122dd93e5b
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -133,9 +133,11 @@ use the minibuffer such as `query-replace'.")
(add-hook 'completion-at-point-functions #'yasnippet-capf 30 t))))
(use-package! corfu-terminal
:when (modulep! :os tty)
:when (not (display-graphic-p))
:hook ((corfu-mode . corfu-terminal-mode)))
;;
;;; Extensions