mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-07 20:54:26 +08:00
remove all themes from the core repository except for the default.
resolves #923
This commit is contained in:
@@ -19,7 +19,12 @@ function! s:init()
|
||||
|
||||
let s:airline_theme_defined = exists('g:airline_theme')
|
||||
if s:airline_theme_defined || !airline#switch_matching_theme()
|
||||
let g:airline_theme = get(g:, 'airline_theme', 'dark')
|
||||
try
|
||||
let palette = g:airline#themes#{g:airline_theme}#palette
|
||||
catch
|
||||
echom 'Could not resolve airline theme "' . g:airline_theme . '". Themes have been migrated to github.com/vim-airline/vim-airline-themes.'
|
||||
let g:airline_theme = 'dark'
|
||||
endtry
|
||||
call airline#switch_theme(g:airline_theme)
|
||||
endif
|
||||
|
||||
@@ -115,6 +120,3 @@ command! -bar AirlineRefresh call s:airline_refresh()
|
||||
|
||||
call airline#init#bootstrap()
|
||||
call s:airline_toggle()
|
||||
|
||||
autocmd VimEnter * call airline#deprecation#check()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user