neovide: Devicons don't load or render, despite font having them available

Describe the bug Devicons don’t render even though the font supports it.

To Reproduce Font is Fira Code, h16. Other font sizes don’t work either

Expected behavior Web devicons and similar should render properly. See goneovim, on the left; neovide on the right.

Screenshots image

Desktop (please complete the following information):

  • OS: W10
  • Neovide Version 0.7.0
  • Neovim Version: NVIM v0.6.0-dev+65-g46009499a

Please run neovide --log and paste the contents of the .log file here: Tried to paste log contents, github didn’t like newline characters. For brevity, full log here: neovide_rCURRENT.log

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 21 (9 by maintainers)

Most upvoted comments

Love that set guifont=* is already useful 😃

Have encountered the same problem, any progress please?

@yetone For me it was just my own incorrect specifications of the font. Id suggest the following first:

  1. Get the latest neovide from actions.
  2. Do "set guifont=* A buffer should appear with all the fonts that neovide can discover in your system. Find your font (should be appended with NF (for example “Fira Code NF”), and press Return with your cursor on it. If it works, set the guifont variable to that string. Note that spaces should be escaped in vimscript (I.e. “set guifont=Fira\ Code\ NF”, or 'vim.g.guifont = “Fira Code NF” ’ in lua).

Edit: An important difference here is that, while “FiraCode” is the original font name, Fira Code NF is the patched version for some reason. I believe that this was where I messed up.

@dartacao sounds like the problem is fixed. Please reopen if I’ve misunderstood.

Hah, I was just going to post this…

At least in the case of @dartacao, in the original post and logs it looks like a non-patched FiraCode font was used, at least it doesn’t have the ‘NF’ or ‘Nerd Font’ postfix. @yetone are you using a patched or nerd font, like the instructions say https://github.com/ryanoasis/vim-devicons