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:
parent
6e60a5921c
commit
122dd93e5b
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue