Fix #30 - Add support for termguicolors

This commit is contained in:
Junegunn Choi
2016-05-17 22:27:08 +09:00
parent be8c754eb1
commit e93c8013bb

View File

@@ -139,7 +139,7 @@ function! s:dim(coeff)
let fg = synIDattr(synid, 'fg#') let fg = synIDattr(synid, 'fg#')
let bg = synIDattr(synid, 'bg#') let bg = synIDattr(synid, 'bg#')
if has('gui_running') || has('nvim') && $NVIM_TUI_ENABLE_TRUE_COLOR if has('gui_running') || has('termguicolors') && &termguicolors
if a:coeff < 0 && exists('g:limelight_conceal_guifg') if a:coeff < 0 && exists('g:limelight_conceal_guifg')
let dim = g:limelight_conceal_guifg let dim = g:limelight_conceal_guifg
elseif empty(fg) || empty(bg) elseif empty(fg) || empty(bg)