Bikeshed vertico config

This commit is contained in:
David Morgan 2022-10-06 16:29:25 +01:00
parent 0b8f3a2240
commit f61fb0fe50
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,8 @@
(use-package vertico (use-package vertico
:init :init
(vertico-mode) (vertico-mode)
(setq vertico-cycle t) :custom (vertico-cycle t)
:config
(advice-add #'vertico--format-candidate :around (advice-add #'vertico--format-candidate :around
(lambda (orig cand prefix suffix index start) (lambda (orig cand prefix suffix index start)
(setq cand (funcall orig cand prefix suffix index start)) (setq cand (funcall orig cand prefix suffix index start))
@ -42,7 +43,6 @@
(propertize "» " 'face 'vertico-current) (propertize "» " 'face 'vertico-current)
" ") " ")
cand))) cand)))
:config
(defun define-vertico-key (key &rest defs) (defun define-vertico-key (key &rest defs)
"Define KEY conditionally in the vertico keymap. "Define KEY conditionally in the vertico keymap.
DEFS is a plist associating completion categories to commands." DEFS is a plist associating completion categories to commands."