ChristianChiarulli / nvim

My neovim config
GNU General Public License v3.0
963 stars 246 forks source link

Missing font icons with NerdFont #1

Open im-AMS opened 2 years ago

im-AMS commented 2 years ago

OS: mac 12.1, MacAir M1, iTerm2 font: InconsolataGo Nerd font

Fix tried:

Screenshot 2021-12-26 at 9 14 10 PM

zhangzhen commented 2 years ago

I've the same problem on my macbook pro with Apple silicon M1 (Big Sur v11.6). The Nerd font I use is DroidSanMono Nerd Font.

Regards, Zhen

im-AMS commented 2 years ago

PS: Tried running fc-cache -f -v I get segmentation fault: 11 does anyone have same issue with OSX?

ChristianChiarulli commented 2 years ago

I use codicons for those icons, not a nerdfont

fanxiao92 commented 2 years ago

@im-AMS font-patcher with --complete argument, glyphs folder already contains codicons. https://github.com/ryanoasis/nerd-fonts#option-8-patch-your-own-font

Fabyao commented 2 years ago

@ChristianChiarulli as a newcomer, I am slightly confused about setting up the fonts here. I have all 3 fonts (Nerd fonts, codicon, imoji) correctly installed on my system (popos). In my alacritty config, setting the font family to codicon shows the corresponding codicons in neovim however the text/wording style is horrible. Is the expectation that one should use font-patcher to combine the 3 fonts or is there some other process that I am missing? Thanks

im-AMS commented 2 years ago

@Fabyao For some reason I have always had problems with this particular config install on my system. It used to frequently break. Recently I switched to Astrovim , The configs are surprisingly similar. I havnt had any breaks so far, give it a shot

Fabyao commented 2 years ago

@im-AMS Thanks for the reply. I managed to get the icons to show. I used the "Complete" nerd fonts which already include the codicon fonts. I think what misled me is the readme file suggesting to download the fonts and patch them (which I also did). I use this project as a starting point to come up with my own configs.