gamozolabs / coverage_highlight

A very simple coverage highlighter for VIM
MIT License
12 stars 1 forks source link

Highlighting is too dark on Light background #1

Open marcopolo4k opened 2 years ago

marcopolo4k commented 2 years ago

Setup

I use a light background in my Mac terminal, something like Basic, Man Page, or Novel

coverage_highlight chooses ctermbg=233.

Problem

So the highlighted lines are too dark to read.

Workaround

This is ugly because I didn't see how vim can get the terminal's background color. But surely that's possible.

.vimrc

set background=light " not required for this workaround, but it's what I've been using
let g:background = "light"

~/.vim/plugin/coverage_highlight.vim

if get(g:, 'background', "default") == "light"
    highlight CoveredLineColor ctermbg=252
else
    " default from coverage_highlight.vim
    highlight CoveredLineColor ctermbg=233
endif
gamozolabs commented 2 years ago

Ooh. I'll see what I can do! I'll have to do some tests.