Merge pull request #118 from cg433n/master

Reload the solarized airline theme on the Colorscheme event.
This commit is contained in:
Bailey Ling 2013-08-06 08:17:47 -07:00
commit 40614ef66b

View File

@ -1,3 +1,4 @@
function! s:generate()
""""""""""""""""""""""""""""""""""""""""""""""""
" Options
""""""""""""""""""""""""""""""""""""""""""""""""
@ -162,3 +163,10 @@ let g:airline#themes#solarized#visual_modified = {
\ s:VM.info_separator[0].t, s:VM.info_separator[1].t, s:VM.info_separator[2]],
\ 'statusline': [s:VM.statusline[0].g, s:VM.statusline[1].g,
\ s:VM.statusline[0].t, s:VM.statusline[1].t, s:VM.statusline[2]]}
endfunction
call s:generate()
augroup airline_solarized
autocmd!
autocmd ColorScheme * call <sid>generate() | call airline#reload_highlight()
augroup END