patstockwell / vim-monokai-tasty

VIM Colour scheme
390 stars 51 forks source link

listchar background issue #23

Closed albertorestifo closed 4 years ago

albertorestifo commented 5 years ago

When showing invisible characters, the background of the listchar doesn't match the background of the editor.

To reproduce:

set list
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:·,space:·
image
patstockwell commented 5 years ago

Hmmm, thanks for taking the time to write this up. I've tried to reproduce the bug but can't seem to make it look like what you've captured in the screen shot.

Screen Shot 2019-11-16 at 2 20 19 pm

I think listchars is highlighted by the Whitespace highlight group in vim. vim-monokai-tasty sets Whitespace to have a darkgrey foreground, and nothing in the background. So your listchars should be showing the with a transparent background.

Do you have a custom highlight rule somewhere in your .vimrc that is setting the background to light grey?

Try running the following commands and see if you get any changes

:set termguicolors
:hi Whitespace guibg='none'

Let me know how you go.

patstockwell commented 4 years ago

@albertorestifo if you're still having trouble, reach out to me and let me know.