tsony-tsonev / nerdtree-git-plugin

A plugin of NERDTree showing git status
19 stars 0 forks source link

Is it possible to highlight ignored files? #2

Closed Artem-Schander closed 5 years ago

Artem-Schander commented 5 years ago

I would like to show files in folders in grey color. It would be really nice.


Off-Topic Why do you not consider creating a standalone plugin (or at least one without the base of Xuyuanp/nerdtree-git-plugin)? I would prefer this one if there wouldn't be any icons for the git states, or if it would be possible to remove the icons through config.

However, nice job.

tsony-tsonev commented 5 years ago

I'm not very familiar on how the base of the original project (Xuyuanp/nerdtree-git-plugin) depends on vim-devicons and vim-nerdtree-syntax-highlight, but I was already using them both so I decided just to upgrade this plugin, I strongly agree with you that it will be better if it is separate plugin not depending on other ones.... sadly my knowledge on vim scripting is far from average and I'm not sure if I'll be able to do it.

As for the question about the ignored files I'll add them to the mapping with the colors these days when I have time, just do not forget to add the needed configuration to the vimrc:

let g:NERDTreeShowIgnoredStatus = 1 (a heavy feature may cost much more time)

and to the g:NERDTreeColorMapCustom mapping (the simple mapping, or the version with the array)

'Ignored'   : '#808080',

I'll comment here when I've pushed to the master.

tsony-tsonev commented 5 years ago

@Artem-Schander done. Tested it and pushed it in master. If it works with you also we can close this issue.

Artem-Schander commented 5 years ago

Nice. Thanks.