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