fix coc transparent background

This commit is contained in:
Nachuan Tang
2022-07-25 22:26:57 -04:00
parent b3019491e8
commit fe48e70a42
+20 -2
View File
@@ -176,6 +176,18 @@
" Theme_Appearance
" {
"
" debug function print out highlight group of cursor position
function! SynStack()
if !exists("*synstack")
return
endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc
nmap <Leader>db :call SynStack()<CR>
" dark or light
if filereadable(expand(g:vim_dir . '.light_theme.signal'))
let g:theme_color = 'light'
@@ -218,8 +230,14 @@
function! TransparentBackgroundFix()
highlight SignColumn ctermbg=none
highlight CursorLineNr ctermbg=none
highlight CocErrorSign ctermbg=none ctermfg=52 cterm=bold
highlight CocErrorHighlight ctermbg=none ctermfg=52 cterm=underline,bold
highlight CocWarningHighlight ctermbg=none
highlight CocErrorSign ctermbg=none ctermfg=9 cterm=bold
highlight CocErrorHighlight ctermbg=none ctermfg=9 cterm=underline,bold
highlight CocInfoHighlight ctermbg=none
highlight CocHintHighlight ctermbg=none
highlight CocWarningSign ctermbg=none
highlight CocInfoSign ctermbg=none
highlight CocHintSign ctermbg=none
endfunction
function! EnableTransparent()