fix coc theme
This commit is contained in:
+15
-12
@@ -228,16 +228,18 @@
|
|||||||
" Fix colorscheme not working correctly under transparent background
|
" Fix colorscheme not working correctly under transparent background
|
||||||
" There is no plugin for this for nvim < 0.5 or vim without lua support
|
" There is no plugin for this for nvim < 0.5 or vim without lua support
|
||||||
function! TransparentBackgroundFix()
|
function! TransparentBackgroundFix()
|
||||||
highlight SignColumn ctermbg=none
|
if !has('nvim') || g:vim_version < 0.5
|
||||||
highlight CursorLineNr ctermbg=none
|
highlight SignColumn ctermbg=none
|
||||||
highlight CocWarningHighlight ctermbg=none
|
highlight CursorLineNr ctermbg=none
|
||||||
highlight CocErrorSign ctermbg=none ctermfg=9 cterm=bold
|
highlight CocWarningHighlight ctermbg=none
|
||||||
highlight CocErrorHighlight ctermbg=none ctermfg=9 cterm=underline,bold
|
highlight CocErrorSign ctermbg=none ctermfg=9 cterm=bold
|
||||||
highlight CocInfoHighlight ctermbg=none
|
highlight CocErrorHighlight ctermbg=none ctermfg=9 cterm=underline,bold
|
||||||
highlight CocHintHighlight ctermbg=none
|
highlight CocInfoHighlight ctermbg=none
|
||||||
highlight CocWarningSign ctermbg=none
|
highlight CocHintHighlight ctermbg=none
|
||||||
highlight CocInfoSign ctermbg=none
|
highlight CocWarningSign ctermbg=none
|
||||||
highlight CocHintSign ctermbg=none
|
highlight CocInfoSign ctermbg=none
|
||||||
|
highlight CocHintSign ctermbg=none
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! EnableTransparent()
|
function! EnableTransparent()
|
||||||
@@ -252,7 +254,6 @@
|
|||||||
\ }
|
\ }
|
||||||
\ }
|
\ }
|
||||||
execute("colorscheme " . g:dark_theme)
|
execute("colorscheme " . g:dark_theme)
|
||||||
call TransparentBackgroundFix()
|
|
||||||
elseif g:theme_color == 'light'
|
elseif g:theme_color == 'light'
|
||||||
let g:PaperColor_Theme_Options = {
|
let g:PaperColor_Theme_Options = {
|
||||||
\ 'theme': {
|
\ 'theme': {
|
||||||
@@ -262,7 +263,6 @@
|
|||||||
\ }
|
\ }
|
||||||
\ }
|
\ }
|
||||||
execute("colorscheme " . g:light_theme)
|
execute("colorscheme " . g:light_theme)
|
||||||
call TransparentBackgroundFix()
|
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@@ -323,6 +323,7 @@
|
|||||||
call CreateSignalFile('.transparent_light_theme.signal')
|
call CreateSignalFile('.transparent_light_theme.signal')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
call TransparentBackgroundFix()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
@@ -380,6 +381,7 @@
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
call TransparentBackgroundFix()
|
||||||
" Allow to trigger background
|
" Allow to trigger background
|
||||||
function! ToggleBG()
|
function! ToggleBG()
|
||||||
" Inversion
|
" Inversion
|
||||||
@@ -403,6 +405,7 @@
|
|||||||
else
|
else
|
||||||
call DisableTransparent()
|
call DisableTransparent()
|
||||||
endif
|
endif
|
||||||
|
call TransparentBackgroundFix()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" }
|
" }
|
||||||
|
|||||||
Reference in New Issue
Block a user