Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netrw selection color masks text color #187

Open
tjaartvdwalt opened this issue May 5, 2020 · 3 comments
Open

netrw selection color masks text color #187

tjaartvdwalt opened this issue May 5, 2020 · 3 comments

Comments

@tjaartvdwalt
Copy link

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

  • Vim type (vim/gvim/neovim): vim/gvim
  • Vim version: 8.2 (2019 Dec 12, compiled Apr 26 2020 11:23:21)
  • OS: Linux hostname 5.6.10-arch1-1 #1 SMP PREEMPT Sat, 02 May 2020 19:11:54 +0000 x86_64 GNU/Linux
  • Terminal/Terminal Emulator/VTE: Alacritty
  • TERM environment variable:

Additional Info

@dsifford
Copy link
Member

dsifford commented May 5, 2020

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
Copy link
Author

: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
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants