kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.16k stars 37 forks source link

Chamge icon #144

Closed karambaq closed 11 months ago

karambaq commented 11 months ago

Neovim version (nvim -v | head -n1)

NVIM v0.10.0-dev-601+gd55d7646c

Operating system/version

macOS 13.2.1

How to reproduce the issue

image

Expected behavior

I'm using nerd font, all icons are show except this one, how can I customize just the icon?a

Actual behavior

Icon not showing

rockyzhang24 commented 11 months ago

Can't reproduce. I think this is not a bug of ufo. Nerd font was upgraded to v3 version and many icons' codepoints were changed.

karambaq commented 11 months ago

I’m using the last version of the font from nerd-fonts. However, It’s not the bug with ufo, I just wanted to know how can I fix it using different icon.

rockyzhang24 commented 11 months ago

See https://github.com/kevinhwang91/nvim-ufo#customize-fold-text please

karambaq commented 11 months ago

Seems like a lot of code to just change an icon, thank you :)

rockyzhang24 commented 11 months ago

No exactly. The example shows how to customize the whole virtual texts, not just the icon. In your case, you just need to change the suffix and use the old virtText. The code will be quite short.

Btw, are you using a neovim distribution like Lunarvim, or your own neovim config?

karambaq commented 11 months ago

I'm using Astronvim