Search code examples
luaeditorneovim

Neovim: icons missing nvim-tree-web-devicons


I added nvim-devicons and installed one of the patched fonts:

https://www.nerdfonts.com/font-downloads.

the icons still not showing,

enter image description here

Config with packer:

https://github.com/kyazdani42/nvim-web-devicons

use({
    "kyazdani42/nvim-tree.lua",
    requires = {
        "kyazdani42/nvim-web-devicons", -- optional, for file icons
    },
})

This is my GitHub repo for this config:

https://github.com/azizgharbi/Neovim-config

Should i install all the icons ? because i only installed one of those icons which is big blue terminal.

I am on macOs and using iterm2.


Solution

  • Make sure to set the terminal font to use the patched font. To change the font in iTerm2:

    1. Start iTerm2.
    2. Click iTerm2 → Preferences → Profiles → Text.
    3. Choose the patched font on the right.