Compare commits

...

6 Commits

Author SHA1 Message Date
gingkapls
2bbd7aaae1 Merge 432fceabe5 into 785c1e17fe 2024-05-05 00:21:50 +05:30
gingkapls
432fceabe5 Fix the logic
Fixes calculating the bg for `Normal` highlight group depending on the ctermbg value
2022-03-17 11:49:32 +05:30
gingkapls
cebb723753 Remove redundant synIDattr calls
Commits changes requested in https://github.com/junegunn/limelight.vim/pull/71#discussion_r826716708
2022-03-16 16:59:01 +05:30
gingkapls
5fbb8bee9b Merge pull request #1 from junegunn/master
Add LICENSE
2022-03-15 13:37:34 +05:30
gingkapls
70b1ad49db Added checks for non-transparent themes
Now both transparent and non-transparent themes work properly
2021-06-11 12:05:44 +05:30
gingkapls
8b3cc23130 Set dim bg to 0 to allow transparency 2020-12-12 01:35:51 +05:30

View File

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