From 650d535a3b7f6c7ae5fac68a4141e96657db0b57 Mon Sep 17 00:00:00 2001 From: Patrick Stockwell Date: Tue, 18 Dec 2018 12:05:28 +1100 Subject: [PATCH] remove early finish statement ensures the global palette is assigned regardless of ctrlp --- autoload/airline/themes/monokai_tasty.vim | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/autoload/airline/themes/monokai_tasty.vim b/autoload/airline/themes/monokai_tasty.vim index 39c7e9e..a65c25a 100644 --- a/autoload/airline/themes/monokai_tasty.vim +++ b/autoload/airline/themes/monokai_tasty.vim @@ -89,12 +89,11 @@ let s:palette.inactive_modified = { \ } " CtrlP -if !get(g:, 'loaded_ctrlp', 0) - finish +if get(g:, 'loaded_ctrlp', 0) + let s:palette.ctrlp = airline#extensions#ctrlp#generate_color_map( + \ s:add(s:yellow, s:dark_grey, 'none'), + \ s:add(s:yellow, s:darker_grey, 'none'), + \ s:add(s:charcoal, s:light_blue, 'bold') ) endif -let s:palette.ctrlp = airline#extensions#ctrlp#generate_color_map( - \ s:add(s:yellow, s:dark_grey, 'none'), - \ s:add(s:yellow, s:darker_grey, 'none'), - \ s:add(s:charcoal, s:light_blue, 'bold') ) let g:airline#themes#monokai_tasty#palette = s:palette