fix coc float for nvim too

This commit is contained in:
2022-09-16 17:08:32 -04:00
parent d9014d447e
commit 563cbb80b3
+7 -6
View File
@@ -344,7 +344,8 @@ endif
" 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()
if !has('nvim') || g:vim_version < 0.5 "if !has('nvim') || g:vim_version < 0.5
if v:true
highlight SignColumn ctermbg=none highlight SignColumn ctermbg=none
highlight CursorLineNr ctermbg=none highlight CursorLineNr ctermbg=none
highlight CocWarningHighlight ctermbg=none highlight CocWarningHighlight ctermbg=none
@@ -356,11 +357,11 @@ endif
highlight CocInfoSign ctermbg=none highlight CocInfoSign ctermbg=none
highlight CocHintSign ctermbg=none highlight CocHintSign ctermbg=none
if g:theme_color == 'dark' if g:theme_color == 'dark'
highlight CocFloating ctermbg=237 highlight! link CocFloating PmenuThumb
highlight CocErrorFloat ctermbg=237 highlight! link CocErrorFloat PmenuThumb
highlight CocWarningFloat ctermbg=237 highlight! link CocWarningFloat PmenuThumb
highlight CocInfoFloat ctermbg=237 highlight! link CocInfoFloat PmenuThumb
highlight CocHintFloat ctermbg=237 highlight! link CocHintFloat PmenuThumb
endif endif
endif endif
endfunction endfunction