Permit appending content to a theme

When ctrlp is not loaded, do not finish (terminate script execution).
Instead, just skip assigning the ctrlp colors.
This commit is contained in:
Chris White 2017-03-12 18:16:26 -04:00
parent 134c0204f3
commit fb6231b479
1 changed files with 5 additions and 6 deletions

View File

@ -94,11 +94,10 @@ let g:airline#themes#dark#palette.accents = {
" variable so that related functionality is loaded iff the user is using " 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 " ctrlp. Note that this is optional, and if you do not define ctrlp colors
" they will be chosen automatically from the existing palette. " they will be chosen automatically from the existing palette.
if !get(g:, 'loaded_ctrlp', 0) if get(g:, 'loaded_ctrlp', 0)
finish 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 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' ])