vim: add support for THEME_PREFER_LIGHT env variable

fix-ci
bretello 2023-09-15 00:09:05 +02:00
parent 20baed04d9
commit de05c9c8f7
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,11 @@ else
let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
endif
set background=dark
if !empty($THEME_PREFER_LIGHT)
set background=light
else
set background=dark
endif
let g:gruvbox_contrast_dark='hard'
let g:gruvbox_sign_column='bg0'