1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-22 15:21:30 +01:00

vim: add support for THEME_PREFER_LIGHT env variable

This commit is contained in:
bretello 2023-09-15 00:09:05 +02:00
parent 20baed04d9
commit de05c9c8f7
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

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'