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
parent f71689304e
commit 875cd1aef9
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

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