nvim-tree / nvim-tree.lua

A file explorer tree for neovim written in lua
Other
7.23k stars 610 forks source link

Missing some icons #2591

Closed nikobonomi closed 10 months ago

nikobonomi commented 10 months ago

Description

I'm having issues with some icons, namely some of git.

I'm on the last version of nvim-tree (installed yesterday) as well as nvim-web-devicons.

As font I'm using FiraCode 3.1.1 from nerd fonts. (tried also with the Hack font) (also tried v3.0.0 and pre 3.0)

As you can see from the help (: h NvimTree), I'm missing some some git icons, the symlink arrow and the bookmark.

image

Not really sure how to proceed (I'm new to nvim)

As for now from the conf I have overwritten some glyphs, but I would like to have it working with the standard ones.

Neovim version

NVIM v0.10.0-dev-1836+g36552adb3
Build type: RelWithDebInfo
LuaJIT 2.1.1702233742

Operating system and version

Ubuntu

Windows variant

WSL

nvim-tree version

50f30bc

Clean room replication

Nothing special to do, just a simple config

-- disable netrw at the very start of your init.lua
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
--
-- -- set termguicolors to enable highlight groups
vim.opt.termguicolors = true
--
-- -- empty setup using defaults
require("nvim-tree").setup {
    renderer = {
        icons = {
            glyphs = {
                git = {
                    untracked = "",
                    unstaged = "U",
                    renamed = "R",
                    deleted = "D",
                    ignored = "I"
                }
            }
        }
    }
}

Steps to reproduce

:h NvimTree

Scroll to the demo config

Expected behavior

To have the correct icons showing

Actual behavior

No response

geril2207 commented 10 months ago

I've installed FiraCode Nerd Font from https://www.nerdfonts.com/font-downloads (I guess it 3.1.1), for me using kitty terminal, seems to work fine. Can you make sure you are running latest nerd font?

nikobonomi commented 10 months ago

I'm sure since I've downloaded the font again this morning from that exact page :/

Could it be somethings with the WSL console on windows?

geril2207 commented 10 months ago

Which terminal do you use? I think output should be the same inside wsl and outside. Can you try outside of wsl?

nikobonomi commented 10 months ago

Just plain WSL, means I open ubuntu from the start menu. Then using plain bash I open nvim.

I will spin up an ubuntu vbox and see there

gegoune commented 10 months ago

This is not an issue of nvim-tree so converting to discussion, but it will most likely be due to missing glyphs or misconfigured terminal emulator.