mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-25 14:13:37 -05:00
refactor(corfu): use tty child frames in 31+
Since 31.1 child frames are now supported on TTY frames. This supports use-cases like Posframe, Corfu, and child frames acting like tooltips. `corfu-terminal` package should be only loaded on older versions. Ref: emacs-mirror/emacs@a8c83b496b Ref: emacs-mirror/emacs@8aef5d224a
This commit is contained in:
@@ -209,6 +209,7 @@ This function respects the value of `+corfu-want-minibuffer-completion':
|
||||
|
||||
(use-package! corfu-terminal
|
||||
:when (modulep! :os tty)
|
||||
:unless (featurep 'tty-child-frames)
|
||||
:hook ((corfu-mode . corfu-terminal-mode)))
|
||||
|
||||
|
||||
|
@@ -11,7 +11,8 @@
|
||||
;; save contributor headaches we should only pin vertico's orderless and leave
|
||||
;; this one unpinned.
|
||||
(package! orderless))
|
||||
(when (modulep! :os tty)
|
||||
(when (and (modulep! :os tty)
|
||||
(not (featurep 'tty-child-frames)))
|
||||
(package! corfu-terminal :pin "501548c3d51f926c687e8cd838c5865ec45d03cc"))
|
||||
(when (modulep! :editor snippets)
|
||||
(package! yasnippet-capf :pin "f53c42a996b86fc95b96bdc2deeb58581f48c666"))
|
||||
|
Reference in New Issue
Block a user