Vim-devicons: After Plug Update, all icons became the same color in NerdTree

Created on 11 May 2020  路  20Comments  路  Source: ryanoasis/vim-devicons

Between commits 58e57b6 and 0b6a7bd, my custom icon colors in NerdTree changed to all the same color.

Commit 58e57b6

Commit_58e57b6

Commit 0b6a7bd

Commit_0b6a7bd

All else stays the same and this behaviour is obtained by toggling the commits in my vimrc.

Toggle

Required Info

  • [ x] I have searched the issues for my issue and found nothing related and/or helpful
  • [x ] I have read or at least glanced at the FAQ
  • [ x] I have read or at least glanced at the Wiki X
  • [tiagofumo after devcons ] VimDevIcons is the last loaded vim plugin?
  • [ 8.2] What version of vim are you using?

    • hint: vim --version

  • [0.11.0 ] What version of vim-devicons are you using?

    • hint: :echo webdevicons#version()

  • [GUI ] Are you using vim from the terminal or a GUI vim?
  • [ Windows] Are you using Mac, Linux or Windows? Windows

Optional Info

  • [ ] Provide screenshots where appropriate
help wanted possible bug

Most helpful comment

All 20 comments

I'm also facing the same situation. I was searching for "color" here and found this issue.

Hi, I've been having issues getting any highlighting to work on only the glyphs. I could only get it to apply to the entire filename and the glyph (but when highlighting does work, it would add brackets).
Could I see the section of your vimrc that adds color? I could not get any of the other instructions to work properly

I also have the same problem, currently using commit 58e57b6.

Em qui., 14 de mai. de 2020 脿s 13:52, IK notifications@github.com
escreveu:

Thanks for report.
How about this patch?

Seems the patch worked!

>

Uh, where is the @kazukazuinaina content with the patch I just got on email?

@taq

In that patch, the following bug was reproduced, so I delete it.
Sorry for the confusion.

https://github.com/ryanoasis/vim-devicons/issues/278

Oh, ok, but for this issue here, it solved the problem. But, a file called [id].js ? I'd rather fix my colors than think in finding file names with brackets. :-)

Hi Just following up on this, the person that made the commit at 0b6a7bd is below

0b6a7bd - Phil Runninger, 4 weeks ago : Ensure only the brackets around the flags are concealed.

Shouldnt we try to contact him?

@vando026 are you using the tiagofumo/vim-nerdtree-syntax-highlight plugin?

Yes I am, and I have it loaded last straight after ryanoasis/vim-devicons.

Oh, ok, but for this issue here, it solved the problem. But, a file called [id].js ? I'd rather fix my colors than think in finding file names with brackets. :-)

Do you have a copy of that patch? Thanks :)

@Ninlives, see #332.

Hey y'all, we closed this PR as it would introduce regressions with conceal of files where the names have square brackets in them, e.g. [id].js

For an interim highlighting solution for DevIcons see https://github.com/her/synicons.vim

@her

Thanks!

@her I just installed your plugin (removing the patched @tiagofumo one) but now my NerdTree is back to no colors again. :-(

Weird stuff. I was using the patched devicons, just removed it and back to @tiagofumo plugin, removing everything and installing again with fresh copies seems to solved my problem.

@her thanks this worked for me too using @tiagofumo plugin and settings.

That鈥檚 great y鈥檃ll! Glad it鈥檚 back to normal 馃憤

Okay,,, so I tried to follow this discussion and its confused me even more. All my icons are having the same color as was the case with all of you. I have the latest versions of everything installed since it was just yesterday I called PlugUpdate.
Do the following settings in .vimrc affect something?

set guifont=MesloLGLDZ\ Nerd\ Font\ Regular\ 11 

Plug 'vim-airline/vim-airline'                                                                                     
Plug 'vim-airline/vim-airline-themes'
    let g:airline#extensions#tabline#enabled = 1
    let g:airline_powerline_fonts = 1
Plug 'ryanoasis/vim-devicons'

Also, can you just list the solution in steps?
Screenshot from 2021-01-18 20-38-41

Was this page helpful?
0 / 5 - 0 ratings

Related issues

extrante picture extrante  路  8Comments

DemonCloud picture DemonCloud  路  3Comments

slabua picture slabua  路  6Comments

x3rxe5 picture x3rxe5  路  8Comments

PetarMetodiev picture PetarMetodiev  路  10Comments