@@ -558,3 +558,29 @@ for [key, val] in items(g:NERDTreePatternMatchHighlightColor)
558558 endif
559559endfor
560560
561+ let icon_closed = g: WebDevIconsUnicodeDecorateFolderNodesDefaultSymbol
562+ let icon_open = g: DevIconsDefaultFolderOpenSymbol
563+ let identifier = ' WebDevIconsDefaultFolderSymbol'
564+ exec ' silent syn match ' .identifier .' "\c[' .icon_closed.' ]\ze.*/" containedin=NERDTreeFlags'
565+ exec ' silent syn match ' .identifier .' "\c[' .icon_open.' ]\ze.*/" containedin=NERDTreeFlags'
566+ if ! exists (' g:WebDevIconsDisableDefaultFolderSymbolColorFromNERDTreeDir' )
567+ exec ' hi def link ' .identifier .' NERDTreeDir'
568+ else
569+ " exec 'hi def link '.identifier.' NERDTreeFlags'
570+ let NERDTreeFlagsTrans = synIDattr (synIDtrans (hlID (' NERDTreeFlags' )), ' name' )
571+ exec ' hi def link ' .identifier .' ' .NERDTreeFlagsTrans
572+ endif
573+ if exists (' g:WebDevIconsDefaultFolderSymbolColor' )
574+ call s: X (identifier , g: WebDevIconsDefaultFolderSymbolColor , ' ' , ' ' )
575+ endif
576+
577+ let icon = g: WebDevIconsUnicodeDecorateFileNodesDefaultSymbol
578+ let identifier = ' WebDevIconsDefaultFileSymbol '
579+ exec ' silent syn match ' .identifier .' "\v\c\zs[' .icon .' ]\ze.*" containedin=NERDTreeFlags'
580+ if ! exists (' g:WebDevIconsDisableDefaultFileSymbolColorFromNERDTreeFile' )
581+ exec ' hi def link ' .identifier .' NERDTreeFile'
582+ exec ' hi! def link NERDTreeFlags NERDTreeFile'
583+ endif
584+ if exists (' g:WebDevIconsDefaultFileSymbolColor' )
585+ call s: X (identifier , g: WebDevIconsDefaultFileSymbolColor , ' ' , ' ' )
586+ endif
0 commit comments