Skip to content

Wrong colors displayed in tree view  #33

@cheap-glitch

Description

@cheap-glitch

Hi,
first thank you for this cool plugin! For the most part it works fine, but I found there are some filenames that are strangely reluctant. This is how I configured the plugin:

let g:NERDTreeSyntaxEnabledExtensions=[
	\'c',
	\'css',
	\'h',
	\'html',
	\'jpg',
	\'js',
	\'json',
	\'lock',
	\'md',
	\'php',
	\'png',
	\'pug',
	\'scss',
	\'vue'
\]

let s:lightgreen="8fbcbb"
let s:lightblue="88c0d0"
let s:pastelblue="81a1c1"
let s:blue="5e81ac"

let s:red="bf616a"
let s:orange="d08770"
let s:yellow="ebcb8b"
let s:green="a3be8c"
let s:purple="b48ead"

let g:NERDTreeExtensionHighlightColor={}
let g:NERDTreeExtensionHighlightColor['c']=s:blue
let g:NERDTreeExtensionHighlightColor['css']=s:blue
let g:NERDTreeExtensionHighlightColor['h']=s:blue
let g:NERDTreeExtensionHighlightColor['html']=s:pastelblue
let g:NERDTreeExtensionHighlightColor['jpg']=s:lightblue
let g:NERDTreeExtensionHighlightColor['js']=s:yellow
let g:NERDTreeExtensionHighlightColor['json']=s:orange
let g:NERDTreeExtensionHighlightColor['lock']=s:red
let g:NERDTreeExtensionHighlightColor['md']=s:lightgreen
let g:NERDTreeExtensionHighlightColor['php']=s:purple
let g:NERDTreeExtensionHighlightColor['png']=s:lightblue
let g:NERDTreeExtensionHighlightColor['pug']=s:lightgreen
let g:NERDTreeExtensionHighlightColor['scss']=s:blue
let g:NERDTreeExtensionHighlightColor['vue']=s:green

let g:NERDTreeExactMatchHighlightColor={}
let g:NERDTreeExactMatchHighlightColor['node_modules/']=s:lightblue

And the result is this:
screenshot-1573664762

The problem lies with the scss and md files. Although they are supposed to be highlighted in blue and light green respectively, that is not the case as you can see on the screenshot above.

I'm using gVim on Arch Linux. Is there some kind of setting that I missed? All these colors are part of the Nord theme I'm using, and they display fine in the source listings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions