nvim-lightbulb icon indicating copy to clipboard operation
nvim-lightbulb copied to clipboard

What font to use for this nice lightbulb icon?

Open jclsn opened this issue 3 years ago • 3 comments

I have tried Nerdfonts etc. The only font giving me a nice icon is the Noto font, but it is not nice for coding. Would be nice if you could link some working fonts!

jclsn avatar Jun 24 '21 14:06 jclsn

Hello, the default lightbulb text set for this plugin is U+1F4A1 ELECTRIC LIGHT BULB, which should be supported by most emoji/emoticon fonts out there. In the GIF, the font used is Noto Color Emoji.

Other emoji fonts out there are Symbola, OpenMoji, and Twemoji.

Alternatively, you can choose the text to use for the lightbulb through the configuration, so you can theoretically choose any text that a font supports.

For example, this lightbulb image is offered by the Material Design Webfont, but is not the lightbulb emoji, rather U+F1275 in the Private Use Area.

kosayoda avatar Jun 26 '21 02:06 kosayoda

but it is not nice for coding

I also just noticed this, and would like to clarify that I am using two fonts in the example GIF. The text font is Iosevka SS02, while the emoji font is Noto Color Emoji.

This is done by setting a fallback font (link given is for most linux distributions), so you could look into setting that up to get a nice coding font while still having a nice icon font.

kosayoda avatar Jun 26 '21 02:06 kosayoda

Thank you for the advice. I have already figured something out by using the Nerd Fonts tweaked fonts. The light bulb is not as nice as the Noto Emoji one, but they are good for coding.

I couldn't get it to work with the fallback font and also don't think it is a nice way getting the fonts to work. At least not a global fallback font. One for the terminal emulator would be alright.

jclsn avatar Jun 29 '21 11:06 jclsn