Vertico and completion-preview mode #512
-
There is a new addition in emacs 30 called 'completion-preview mode', which allows to see completion suggestions as some sort of an echo. And it renders incorrectly using vertico completion: There is no such problem using a minibuffer with a non-interactive completion nor ivy: To reproduce, evaluate '(add-hook 'minibuffer-mode-hook #'completion-preview-mode)' GNU Emacs 30.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0) of 2024-08-20 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! Using these two modes together in the minibuffer is not recommended, and as it seems, is also not supported right now. There is almost no advantage of enabling |
Beta Was this translation helpful? Give feedback.
Hi! Using these two modes together in the minibuffer is not recommended, and as it seems, is also not supported right now. There is almost no advantage of enabling
completion-preview-mode
inside the minibuffer. It only adds overhead and leads to interfering key bindings. Also the second example you are showing is misleading. While Vertico prioritizesconfig.org
,completion-preview-mode
suggestscolors
as completion. My recommendation is to only enablecompletion-preview-mode
in non-completing-read
minibuffers.