From 563cbb80b33cdd607550776449ef71ba8a7fb417 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Fri, 16 Sep 2022 17:08:32 -0400 Subject: [PATCH] fix coc float for nvim too --- .vimrc.bundles | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index 0f62715..cb2c692 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -344,7 +344,8 @@ endif " Fix colorscheme not working correctly under transparent background " There is no plugin for this for nvim < 0.5 or vim without lua support 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 CursorLineNr ctermbg=none highlight CocWarningHighlight ctermbg=none @@ -356,11 +357,11 @@ endif highlight CocInfoSign ctermbg=none highlight CocHintSign ctermbg=none if g:theme_color == 'dark' - highlight CocFloating ctermbg=237 - highlight CocErrorFloat ctermbg=237 - highlight CocWarningFloat ctermbg=237 - highlight CocInfoFloat ctermbg=237 - highlight CocHintFloat ctermbg=237 + highlight! link CocFloating PmenuThumb + highlight! link CocErrorFloat PmenuThumb + highlight! link CocWarningFloat PmenuThumb + highlight! link CocInfoFloat PmenuThumb + highlight! link CocHintFloat PmenuThumb endif endif endfunction