From 42260bc35fe948092ead4f2782d08eb16bacb5ff Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Tue, 6 Aug 2013 21:53:14 +0000 Subject: [PATCH] can't forget about solarized --- autoload/airline/themes/solarized.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/autoload/airline/themes/solarized.vim b/autoload/airline/themes/solarized.vim index 720b02a4..9c5fc038 100644 --- a/autoload/airline/themes/solarized.vim +++ b/autoload/airline/themes/solarized.vim @@ -163,6 +163,13 @@ function! s:generate() \ 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]]} + + if get(g:, 'loaded_ctrlp', 0) + let g:airline#themes#solarized#ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [s:I3[0].g, s:I3[1].g, s:I3[0].t, s:I3[1].t, s:I3[2]], + \ [s:I2[0].g, s:I2[1].g, s:I2[0].t, s:I2[1].t, s:I2[2]], + \ [s:I1[0].g, s:I1[1].g, s:I1[0].t, s:I1[1].t, s:I1[2]]) + endif endfunction call s:generate()