kosayoda / nvim-lightbulb

VSCode 💡 for neovim's built-in LSP.
MIT License
783 stars 28 forks source link

What font to use for this nice lightbulb icon? #12

Closed jclsn closed 1 year ago

jclsn commented 3 years ago

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!

kosayoda commented 3 years ago

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 commented 3 years ago

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.

jclsn commented 3 years ago

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.