must use finish to prevent ctrlp from getting source.

This commit is contained in:
Bailey Ling 2013-08-26 15:17:24 +00:00
parent 9194a9f02d
commit c42eefbd1d
4 changed files with 26 additions and 20 deletions

View File

@ -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(
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' ])
endif

View File

@ -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(
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 , '' ] )
endif

View File

@ -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(
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' ] )
endif

View File

@ -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(
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' ] )
endif