You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all, this is a minor glitch so feel free to ignore the problem. Since I do not use marginalia, I customize vertico-current with :extend set to nil:
(set-face-attribute'vertico-currentnil:extendnil)
However, it seems like vertico--format-candidate adds a whitespace at the end of the current selected candidate:
If I override vertico--format-candidate with the following advice:
(define-advice vertico--format-candidate
(:override (cand prefix suffix index _start) mu-vertico--format-candidate)
"Format CAND given PREFIX, SUFFIX and INDEX."
(setq cand (vertico--display-string (concat prefix cand suffix "\n")))
(when (= index vertico--index)
(add-face-text-property0 (1- (length cand)) 'vertico-current'append cand))
cand)
The whitespace is removed:
Is it something vertico should take into account or should I just use the advice for this specific use-case? I wouldn't want you to add useless complexity and hacks to vertico just for this.
The text was updated successfully, but these errors were encountered:
To me the highlight makes sense only where there is something to place it upon. Without Marginalia, I see long highlights extended horizontally across the screen with little content in them.
I see your point though, I'll keep the advice in my configuration then.
Hi,
first of all, this is a minor glitch so feel free to ignore the problem. Since I do not use
marginalia
, I customizevertico-current
with:extend
set tonil
:However, it seems like
vertico--format-candidate
adds a whitespace at the end of the current selected candidate:If I override
vertico--format-candidate
with the following advice:The whitespace is removed:
Is it something
vertico
should take into account or should I just use the advice for this specific use-case? I wouldn't want you to add useless complexity and hacks tovertico
just for this.The text was updated successfully, but these errors were encountered: