mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
tweak(vertico): use setq-default to set completion-in-region-function
Corfu makes completion-in-region-function a local variable in buffers where it is enabled, so when this form is evaluated in one of those said buffers (such as opening a file with Emacs before accessing the minibuffer), completion-in-region-function will just be set locally there.
This commit is contained in:
@ -27,8 +27,8 @@ overrides `completion-styles' during company completion sessions.")
|
|||||||
:config
|
:config
|
||||||
(setq vertico-resize nil
|
(setq vertico-resize nil
|
||||||
vertico-count 17
|
vertico-count 17
|
||||||
vertico-cycle t
|
vertico-cycle t)
|
||||||
completion-in-region-function
|
(setq-default completion-in-region-function
|
||||||
(lambda (&rest args)
|
(lambda (&rest args)
|
||||||
(apply (if vertico-mode
|
(apply (if vertico-mode
|
||||||
#'consult-completion-in-region
|
#'consult-completion-in-region
|
||||||
|
Reference in New Issue
Block a user