Added checks for non-transparent themes

Now both transparent and non-transparent themes work properly
This commit is contained in:
gingkapls
2021-06-11 12:05:44 +05:30
committed by GitHub
parent 8b3cc23130
commit 70b1ad49db

View File

@@ -137,7 +137,11 @@ endfunction
function! s:dim(coeff)
let synid = synIDtrans(hlID('Normal'))
let fg = synIDattr(synid, 'fg#')
let bg = 0
if synIDattr(synid, 'bg#') == 'none'
let bg = 0
else
let bg = synIDattr(synid, 'bg#')
endif
if has('gui_running') || has('termguicolors') && &termguicolors || has('nvim') && $NVIM_TUI_ENABLE_TRUE_COLOR
if a:coeff < 0 && exists('g:limelight_conceal_guifg')