Vim-devicons: Can't see directory node icon in NERDTree

Created on 6 Jun 2015  Â·  20Comments  Â·  Source: ryanoasis/vim-devicons

Hello, I've installed vim-webdevicons successfully (I think), but now I can not change the NerdTree symbol, because the one appearing by default is ugly (and it looks is cut):

screen shot 2015-06-06 at 00 11 41

I've tried with this settings in my vimrc , but they have no effect:

let g:WebDevIconsUnicodeDecorateFolderNodes = 1
let g:WebDevIconsUnicodeDecorateFolderNodeDefaultSymbol = ''

let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = {}
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['nerdtree'] = ''

What I'm doing wrong?

Note: I've patched Monaco font (I'm on MacOSX), other icons are showing well, but directory nodes are not. I'm using gvim.

Thanks for your help.

Note 2: I don't know if could be related but my NERDTree is configured to not launch on gvim start.

âš  confirmed bug

Most helpful comment

@ZzAntares Sorry about this :sob:

Actually I think the issue is not as confusing as I initially thought. It appears to be g:WebDevIconsUnicodeDecorateFolderNodes in users vimrc setting is getting overwritten by the plugin :blush:

To confirm the suspicion you can call let g:WebDevIconsUnicodeDecorateFolderNodes = 1 after vim has loaded and refresh the nerdtree.

I am going to push a fix soon and let me know if it works for you

All 20 comments

Thanks there are other reports of glyphs being cut off I will have to look into.

You can try to see if increasing the padding helps:

let g:WebDevIconsNerdTreeAfterGlyphPadding = '  '

As for the folder glyph not showing my suspicion is that I did not add it explicitly to the set of new glyphs but rather I chose the folder glyph arbitrarily from a font but it probably doesn't exist in all (including the one you tried)

Hello, adding let g:WebDevIconsNerdTreeAfterGlyphPadding = ' ' works, but the folder icon is not showing, but I think that's my issue, I patched Monaco font, but the one I was using was Monaco for Powerline (previously patched by me for using with airline), I think I need to patch that new font instead of the original. I'll try later.

Thanks.

@ZzAntares , oh okay. Let me know if that works for you.

The font patcher I made should have put the folder glyph as well so that is odd.

@ZzAntares just FYI #72 is probably going to fix this for you. I will get it into the next version

Thanks we'll see, as patching the power line font didn't work either.

@ZzAntares can you see if pulling latest master fixes this issue for you? Thanks

Still not working, even pulled the latest patcher, patched again and nothing

screen shot 2015-06-28 at 01 58 07

Config in .vimrc:
screen shot 2015-06-28 at 01 57 43

I guess I've to surrender :(

@ZzAntares Sorry about this :sob:

Actually I think the issue is not as confusing as I initially thought. It appears to be g:WebDevIconsUnicodeDecorateFolderNodes in users vimrc setting is getting overwritten by the plugin :blush:

To confirm the suspicion you can call let g:WebDevIconsUnicodeDecorateFolderNodes = 1 after vim has loaded and refresh the nerdtree.

I am going to push a fix soon and let me know if it works for you

Please close if this fixes the issue for you :smile:

This now works but it does not remove the ugly icon in the very left, what could be happening?

screen shot 2015-06-28 at 14 20 23

Actually I think those are NERDTreeDirArrows

If you move cursor over the character and enter ga you should see the hex and octal value.

Here is how mine looks with and without NERDTreeDirArrows set:

selection_28_06_15_15 44 33_328x370_001

selection_28_06_15_15 48 40_298x252_001

you're right those are the nerdtree arrows, but I don't understand why they disappear does the patcher removes the glyphs?

This is how it looks with the let g:NERDTreeDirArrows=0:

screen shot 2015-06-29 at 01 11 47

The patcher shouldn't be removing any glyphs but it may be changing the size in a way that causes the terminal not to be able to render them. What terminal are you using?

Can you send me the font you are using? The pre-patched version and the patched version. Thanks.

I'm using macvim/gvim, this is the font:

set guifont=Monaco\ for\ Powerline\ Plus\ Nerd\ File\ Types:h15

The original font is Monaco, but I've been using "Monaco por powerline" for the symbols, that is the one I patched, patching the original didn't work neither.

Try copying and pasting the character into gvim buffer to see if it will even show: â–¸

If you completely disable vim-webdevicons does the â–¸ show up?

Do other fonts work fine? E.g. if you even try setting gvim to use another system font does the arrow show?

At least on my system that character mostly is coming from either DejaVu Sans or DejaVu Sans Mono and not _normally_ in any of the patched or un-patched fonts.

I don't see anything wrong with the patched Monaco fonts I have found so far.

Hello, copying and pasting the character in the gvim buffer does not show the arrow glyph. And yes using another font even a non-patched the arrows show. I'd like to use the Monaco font, do you have an already patched working font to try?

Thanks.

Strange it sounds like a problem with that font. I will try patching it on my end and upload it depending on license

Great! It worked like a charm. I suppose then was a problem with my patched font or the patcher.

Thanks for your help, I suppose we can close this (reopen if need it). Thanks!

Awesome! Good to hear. :tada:

I will probably add that font to the list of those included in https://github.com/ryanoasis/font-nerd-icons

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DemonCloud picture DemonCloud  Â·  3Comments

slabua picture slabua  Â·  6Comments

extrante picture extrante  Â·  8Comments

kiranps picture kiranps  Â·  7Comments

soulomoon picture soulomoon  Â·  10Comments