This commit is contained in:
Nachuan Tang
2023-03-02 15:39:26 -05:00
parent 09af16ae97
commit 6c53b5cf17
+1 -3
View File
@@ -528,10 +528,9 @@ endfunction
endfunction endfunction
" Change bottom airline/lualine theme " Change bottom airline/lualine theme
" Currently only support airline
function! SetStatusLineTheme(theme) function! SetStatusLineTheme(theme)
if g:vim_type == 'nvim' && g:vim_version >= 0.5 if g:vim_type == 'nvim' && g:vim_version >= 0.5
"execute('AirlineTheme ' . a:theme) " lualine will change theme automatically
else else
if HasPlug('vim-airline') && HasPlug('vim-airline-themes') if HasPlug('vim-airline') && HasPlug('vim-airline-themes')
execute('AirlineTheme ' . a:theme) execute('AirlineTheme ' . a:theme)
@@ -540,7 +539,6 @@ endfunction
endfunction endfunction
" 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
function! TransparentBackgroundFix() function! TransparentBackgroundFix()
if !has('nvim') || g:vim_version < 0.5 if !has('nvim') || g:vim_version < 0.5
endif endif