From e0f5bcc06a6dbf780db38c4d313cede27a72ec8c Mon Sep 17 00:00:00 2001 From: "Christopher.Green" Date: Tue, 6 Aug 2013 07:25:21 -0700 Subject: [PATCH] Reload the solarized airline theme on the Colorscheme event. --- autoload/airline/themes/solarized.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autoload/airline/themes/solarized.vim b/autoload/airline/themes/solarized.vim index 24a24cb..159a5ec 100644 --- a/autoload/airline/themes/solarized.vim +++ b/autoload/airline/themes/solarized.vim @@ -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 generate() | call airline#reload_highlight() +augroup END