mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 07:13:46 -05:00
Changed to g:gruvbox_guisp_fallback, which takes 'fg' or 'bg' as an argument
This commit is contained in:
@@ -41,8 +41,8 @@ endif
|
|||||||
if !exists('g:gruvbox_underline')
|
if !exists('g:gruvbox_underline')
|
||||||
let g:gruvbox_underline=1
|
let g:gruvbox_underline=1
|
||||||
endif
|
endif
|
||||||
if !exists('g:gruvbox_foreground_guisp')
|
if !exists('g:gruvbox_guisp_fallback') || index(['fg', 'bg'], g:gruvbox_guisp_fallback) == -1
|
||||||
let g:gruvbox_foreground_guisp=0
|
let g:gruvbox_guisp_fallback='none'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists('g:gruvbox_italicize_comments')
|
if !exists('g:gruvbox_italicize_comments')
|
||||||
@@ -232,7 +232,7 @@ function! s:HL(group, fg, ...)
|
|||||||
let histring = 'hi ' . a:group . ' '
|
let histring = 'hi ' . a:group . ' '
|
||||||
|
|
||||||
" if (Foreground override enabled) && ( We were passed a guisp value )
|
" if (Foreground override enabled) && ( We were passed a guisp value )
|
||||||
if g:gruvbox_foreground_guisp != 0 && a:0 >= 3 && strlen(a:3) && a:3 != 'none'
|
if g:gruvbox_guisp_fallback == 'fg' && a:0 >= 3 && strlen(a:3) && a:3 != 'none'
|
||||||
let c = get(s:gb, a:3)
|
let c = get(s:gb, a:3)
|
||||||
let histring .= 'guifg=#' . c[0] . ' ctermfg=' . c[1] . ' '
|
let histring .= 'guifg=#' . c[0] . ' ctermfg=' . c[1] . ' '
|
||||||
elseif strlen(a:fg)
|
elseif strlen(a:fg)
|
||||||
@@ -248,7 +248,11 @@ function! s:HL(group, fg, ...)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if a:0 >= 1 && strlen(a:1)
|
" if (Background override enabled) && ( We were passed a guisp value )
|
||||||
|
if g:gruvbox_guisp_fallback == 'bg' && a:0 >= 3 && strlen(a:3) && a:3 != 'none'
|
||||||
|
let c = get(s:gb, a:3)
|
||||||
|
let histring .= 'guibg=#' . c[0] . ' ctermbg=' . c[1] . ' '
|
||||||
|
elseif a:0 >= 1 && strlen(a:1)
|
||||||
if a:1 == 'bg'
|
if a:1 == 'bg'
|
||||||
let histring .= 'guibg=bg ctermbg=bg '
|
let histring .= 'guibg=bg ctermbg=bg '
|
||||||
elseif a:fg == 'fg'
|
elseif a:fg == 'fg'
|
||||||
|
|||||||
Reference in New Issue
Block a user