yatli / fvim

Cross platform Neovim front-end UI, built with F# + Avalonia
MIT License
1.34k stars 30 forks source link

Can I customize / turn specific characters into images? #233

Open ziontee113 opened 2 years ago

ziontee113 commented 2 years ago

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!

yatli commented 2 years ago

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.

ziontee113 commented 2 years ago

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

yatli commented 2 years ago

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

ziontee113 commented 2 years ago

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.