mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-19 13:43:36 -05:00
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:
@@ -133,9 +133,11 @@ use the minibuffer such as `query-replace'.")
|
|||||||
(add-hook 'completion-at-point-functions #'yasnippet-capf 30 t))))
|
(add-hook 'completion-at-point-functions #'yasnippet-capf 30 t))))
|
||||||
|
|
||||||
(use-package! corfu-terminal
|
(use-package! corfu-terminal
|
||||||
|
:when (modulep! :os tty)
|
||||||
:when (not (display-graphic-p))
|
:when (not (display-graphic-p))
|
||||||
:hook ((corfu-mode . corfu-terminal-mode)))
|
:hook ((corfu-mode . corfu-terminal-mode)))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Extensions
|
;;; Extensions
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user