Open Cons-Cat opened 8 months ago
you can use (with Nerd font):
(defun nano-vertico--format-candidate (orig-fun cand prefix suffix index start)
"Make sure CAND, PREFIX and SUFFIX have height set because the
default face height is set to 0.1 to hide regular prompt/contents"
(apply orig-fun (list (nano-vertico--format-string cand)
(nano-vertico--format-string (if (= vertico--index index) " " " "))
(nano-vertico--format-string suffix)
index start)))
Thanks for the tip! I don't have a nerd font, so I set it to this cute heart instead: Maybe the arrow character would make a good configuration point.
I tried several regular character such as >
, ▶︎
, ❯
, →
but the one from Nerd font was better. Where does the heart come from? Regular font ?
I got it from here: https://emojipedia.org/rotated-heavy-black-heart-bullet It's part of unicode 1.1 apparently, so I guess it's in some font on my system. Likely noto fonts.
Unlike the image in the readme, on my configuration the buffer looked like this:
There is no arrow on the current line, and each line has an underline behind it. I have fixed the underline by redefining
nano-vertico--format-candidate
in myinit.el
to insert only a normal whitespace instead like so:I don't know where the arrow is supposed to come from, though.