fvim icon indicating copy to clipboard operation
fvim copied to clipboard

Can I customize / turn specific characters into images?

Open ziontee113 opened this issue 3 years ago • 4 comments

Hi @yatli , I haven't used fvim yet, but I wonder if it's possible to customize / turn specific characters into images in fvim.

I see your cmp example on the README page and I wonder the possibilities. I dreamed about having images replaces characters for a while, so I can use them as conceals :)

Is this possible in fvim? Thank you very much!

ziontee113 avatar Jul 22 '22 18:07 ziontee113

The README example is a special case for popup menu, but in general I wouldn't recommend replacing a meaningful unicode codepoint (well that one is subjective), but then there's NERD font...

What kind of images do you want? Bitmaps won't work across different font/size; Vector images could be hacked into a font (custom emoji) though.

yatli avatar Aug 15 '22 13:08 yatli

Yeah I was looking for bitmaps, but it seems quite impossible then :smile:

ziontee113 avatar Aug 15 '22 22:08 ziontee113

There's another option: https://github.com/yatli/gui-widgets.nvim Guess you can build conceal-like markers this way.

yatli avatar Aug 16 '22 06:08 yatli

Oh boy I have no idea how to use what you just sent me :smile: but I appreciate it :) It's still too soon for me to mess with the GUI side of things haha.

ziontee113 avatar Aug 16 '22 08:08 ziontee113