fix neovim color mode

This commit is contained in:
Christian Brabandt
2016-02-05 22:19:48 +01:00
parent fdb74f549d
commit 87d60febaf
5 changed files with 19 additions and 10 deletions

View File

@@ -43,6 +43,7 @@ endfunction
function! s:on_colorscheme_changed()
call s:init()
let g:airline_gui_mode = airline#init#gui_mode()
if !s:theme_in_vimrc
call airline#switch_matching_theme()
endif
@@ -77,7 +78,7 @@ function! s:airline_toggle()
\ | call <sid>on_window_changed()
autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter')
autocmd ColorScheme * call <sid>on_colorscheme_changed()
autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed()
autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload,VimResized *
\ call <sid>on_window_changed()