From c42eefbd1d9ca924ccd1a98e12a589e27d8ced5b Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Mon, 26 Aug 2013 15:17:24 +0000 Subject: [PATCH] must use finish to prevent ctrlp from getting source. --- autoload/airline/themes/dark.vim | 12 +++++++----- autoload/airline/themes/luna.vim | 11 ++++++----- autoload/airline/themes/molokai.vim | 11 ++++++----- autoload/airline/themes/wombat.vim | 12 +++++++----- 4 files changed, 26 insertions(+), 20 deletions(-) diff --git a/autoload/airline/themes/dark.vim b/autoload/airline/themes/dark.vim index e62f838..74e39fa 100644 --- a/autoload/airline/themes/dark.vim +++ b/autoload/airline/themes/dark.vim @@ -90,9 +90,11 @@ let g:airline#themes#dark#palette.inactive = airline#themes#generate_color_map(s " variable so that related functionality is loaded iff the user is using " ctrlp. Note that this is optional, and if you do not define ctrlp colors " they will be chosen automatically from the existing palette. -if get(g:, 'loaded_ctrlp', 0) - let g:airline#themes#dark#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#d7d7ff' , '#5f00af' , 189 , 55 , '' ], - \ [ '#ffffff' , '#875fd7' , 231 , 98 , '' ], - \ [ '#5f00af' , '#ffffff' , 55 , 231 , 'bold' ]) +if !get(g:, 'loaded_ctrlp', 0) + finish endif +let g:airline#themes#dark#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#d7d7ff' , '#5f00af' , 189 , 55 , '' ], + \ [ '#ffffff' , '#875fd7' , 231 , 98 , '' ], + \ [ '#5f00af' , '#ffffff' , 55 , 231 , 'bold' ]) + diff --git a/autoload/airline/themes/luna.vim b/autoload/airline/themes/luna.vim index d0aaa6b..6ec9543 100644 --- a/autoload/airline/themes/luna.vim +++ b/autoload/airline/themes/luna.vim @@ -42,9 +42,10 @@ let s:IA = [ '#4e4e4e' , '#002b2b' , 59 , 23 , '' ] let g:airline#themes#luna#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) -if get(g:, 'loaded_ctrlp', 0) - let g:airline#themes#luna#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#ffffff' , '#002b2b' , 231 , 23 , '' ] , - \ [ '#ffffff' , '#005252' , 231 , 36 , '' ] , - \ [ '#ffffff' , '#973d45' , 231 , 95 , '' ] ) +if !get(g:, 'loaded_ctrlp', 0) + finish endif +let g:airline#themes#luna#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#ffffff' , '#002b2b' , 231 , 23 , '' ] , + \ [ '#ffffff' , '#005252' , 231 , 36 , '' ] , + \ [ '#ffffff' , '#973d45' , 231 , 95 , '' ] ) diff --git a/autoload/airline/themes/molokai.vim b/autoload/airline/themes/molokai.vim index a50d86c..b3c3989 100644 --- a/autoload/airline/themes/molokai.vim +++ b/autoload/airline/themes/molokai.vim @@ -50,10 +50,11 @@ let g:airline#themes#molokai#palette.inactive = airline#themes#generate_color_ma " CtrlP -if get(g:, 'loaded_ctrlp', 0) - let g:airline#themes#molokai#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#f8f8f0' , '#465457' , 253 , 67 , '' ] , - \ [ '#f8f8f0' , '#232526' , 253 , 16 , '' ] , - \ [ '#080808' , '#e6db74' , 232 , 144 , 'bold' ] ) +if !get(g:, 'loaded_ctrlp', 0) + finish endif +let g:airline#themes#molokai#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#f8f8f0' , '#465457' , 253 , 67 , '' ] , + \ [ '#f8f8f0' , '#232526' , 253 , 16 , '' ] , + \ [ '#080808' , '#e6db74' , 232 , 144 , 'bold' ] ) diff --git a/autoload/airline/themes/wombat.vim b/autoload/airline/themes/wombat.vim index 8565f2e..ff37c82 100644 --- a/autoload/airline/themes/wombat.vim +++ b/autoload/airline/themes/wombat.vim @@ -79,9 +79,11 @@ let g:airline#themes#wombat#palette.insert_paste = { let g:airline#themes#wombat#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) -if get(g:, 'loaded_ctrlp', 0) - let g:airline#themes#wombat#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ [ '#DADADA' , '#242424' , 253 , 234 , '' ] , - \ [ '#DADADA' , '#40403C' , 253 , 238 , '' ] , - \ [ '#141413' , '#DADADA' , 232 , 253 , 'bold' ] ) +if !get(g:, 'loaded_ctrlp', 0) + finish endif +let g:airline#themes#wombat#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ [ '#DADADA' , '#242424' , 253 , 234 , '' ] , + \ [ '#DADADA' , '#40403C' , 253 , 238 , '' ] , + \ [ '#141413' , '#DADADA' , 232 , 253 , 'bold' ] ) +