nvim-tree / nvim-web-devicons

lua `fork` of vim-web-devicons for neovim
MIT License
1.95k stars 183 forks source link

File with .md extension show unknown icon #306

Closed jonahfang closed 9 months ago

jonahfang commented 9 months ago

I use iTerm2 (v3.5.0beta11) with macOS Monterey, and installed v3.0.2 Hack Nerd Font. I searched the website https://www.nerdfonts.com/cheat-sheet, found that:

  nf-dev-markdown (\ue73e) <--- Display OK
  nf-oct-markdown (\uf48a) <--- Unknown icon is this 
image
alex-courtis commented 9 months ago

What are you using to show icons? nvim-tree?

It's up to the vim plugin etc. to decide which symbol to display.

jonahfang commented 9 months ago

This problem maybe come from iTerm2.

alex-courtis commented 9 months ago

You can try testing the terminal directly:

20230923_140235

jonahfang commented 9 months ago

I have tested it:

image
alex-courtis commented 9 months ago

Sorry mate, it's your terminal.

jonahfang commented 9 months ago

Can I config this plugin to change the icon of md?

alex-courtis commented 9 months ago

Yes. You can make many changes: https://github.com/nvim-tree/nvim-web-devicons#set-an-icon

jonahfang commented 9 months ago

@alex-courtis it works, thanks!