dracula / vim

🧛🏻‍♂️ Dark theme for Vim
https://draculatheme.com/vim
MIT License
1.32k stars 455 forks source link

netrw selection color masks text color #187

Open tjaartvdwalt opened 4 years ago

tjaartvdwalt commented 4 years ago

What happened

Run netrw-explore :Explore

The font color for certain files, is the same as the highlight color for the current file. If you navigate to one of these files, the file name becomes unreadable.

What I expected to happen

Font color, and highlight color to be different colors

Screenshot

screenshot_2020-05-05_11-50-02_194736550

Machine Info

Additional Info

dsifford commented 4 years ago

What are the syntax groups being applied to those files?

In my netrc, pngs are the same color as the other files.

Is the ownership adjusted on those or something?

tjaartvdwalt commented 4 years ago

:syntax, gives me this output: netrwPix xxx match /\c\(\S\+ \)*\S*\.\%(bmp\|fits\=\|gif\|je\=pg\|pcx\|ppc\|pgm\|png\|ppm\|psd\|rgb\|tif\|xbm\|xcf\)\>/ contains=n etrwTreeBar,@NoSpell

But I noticed that netrwPix is supposed to be pink, not grey, as shown above.

If I type

:syntax off
:syntax on

it seems to fix things

screenshot_2020-05-05_13-58-04_099067329 the colors

dsifford commented 4 years ago

@tjaartvdwalt Were you able to figure this out?

I did see that g:netrw_special_syntax produces a more colorful netrw directory tree, but I was not able to reproduce the issue.

That said, I don't use current line highlighting, which I assume is a part of the reason why you're having the experience you are with current line issues in netrw.