plugin: use airline#util#warning instead of echo consistently

This commit is contained in:
Christian Brabandt 2018-11-13 21:36:50 +01:00
parent c3ee263d5b
commit cd0b15b195
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -23,7 +23,7 @@ function! s:init()
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.'
call airline#util#warning(printf('Could not resolve airline theme "%s". Themes have been migrated to github.com/vim-airline/vim-airline-themes.', g:airline_theme))
let g:airline_theme = 'dark'
endtry
silent call airline#switch_theme(g:airline_theme)