Vim-devicons: Icon's are all the same Question mark

Created on 30 Apr 2019  Â·  16Comments  Â·  Source: ryanoasis/vim-devicons

I've installed a Nerd-font and Devicons via Vim-Plug.
I've followed and consulted the manpages but all the configurations seem to be correct returning 1 or that the font is set.

you can find my neovim setup here https://github.com/svliantiss/dotfiles/tree/master/neovim

I am using
set guifont=DroidSansMono\ Nerd\ Font\ 11
set guifont=DroidSansMono\ Nerd\ Font:h11

It doesn't work on any of these platforms, but it does respond 1 or the correct font:
Vim (on any of the plaforms below)
Neovim (on any of the platforms below)
Linux Ubuntu 19.04
MacOs Mojave iTerm2 and Terminal
Linux Manjaro (up-to-date)
Windows Subsystem for Linux (Ubuntu 18.04.02 TLS)

image

unconfirmed bug

Most helpful comment

@svliantiss

Did you set Nerdfont on the terminal?

As below

スクリーンショット 2019-10-28 19 05 01

ps (it is iTerm2)

All 16 comments

This might be encoding issue?

Can you try:

set encoding=UTF-8

So I'm in the same boat using NeoVim. All 1s on all the debug items, set the guifont and matched the font in the iTerm settings. Using patched nerd fonts. Tried both set encoding=UTF-8 and set encoding=utf-8. Any other ideas to try?

Sorry for the late response, but yes that option of set encoding=UTF-8 has already been enabled.

I don't know if this adds value to this post but I have a similar issue, except I'm getting chinese characters for javascript files, and .vim config files.

image

using neovim, i3, gnome-terminal, and that screenshot is from NERDTree.

Same issue with me as well (neovim), os: mac

Same issue with me as well (vim), os: deepin linux
but it is ok at a week ago .
I copy windows fonts to /usr/share/fonts, maybe that is question.
深度截图_选择区域_20190902095551

@svliantiss

Did you set Nerdfont on the terminal?

As below

スクリーンショット 2019-10-28 19 05 01

ps (it is iTerm2)

@kazukazuinaina it does not work for setting up font in my gnom-terminal.
my .vimrc is as follows:
set encoding=UTF-8 set guifont=FiraCode\ NF\ 11

Setting Hack Nerd Font works for me (I am using iTerm2)

@cnscorpions

set guifont is a setting for GUI such as GVim. So if you are using Vim on a terminal I don't think it helps. You needs to be selected and set Nerd font from the GNOME terminal.

I haven't received a reply from the author for a long time, so I'll close this issue.
If you have any problems, feel free to restart or create a new one.

Installing the font using nerd-fonts script fixed it for me https://github.com/ryanoasis/nerd-fonts#option-3-install-script

e.g.
./install.sh FiraCode

Setting Hack Nerd Font works for me (I am using iTerm2)

same situation for me, only Hack Nerd Font works, change to other fonts will show ? for all icons

If you are in Mac, uyou need to set Hack Nerd Font in your profile (under the section Profiles -> Text -> Non-Ascii Font. Remember set it under Non-Ascii Font!!!

Thanks for the follow ups

After updating iterm, I had to quit it so the changes would take effect.

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aminnairi picture aminnairi  Â·  4Comments

ntropia2 picture ntropia2  Â·  4Comments

sodiumjoe picture sodiumjoe  Â·  3Comments

marioortizmanero picture marioortizmanero  Â·  3Comments

soulomoon picture soulomoon  Â·  10Comments