introduce g:airline_theme_patch_func (#173).

This commit is contained in:
Bailey Ling
2013-08-22 19:55:04 -04:00
parent e7ae77c027
commit c2632f9dbb
2 changed files with 16 additions and 0 deletions

View File

@@ -60,6 +60,17 @@ values):
can be overridden by defining a value. >
let g:airline_theme=
<
* if you want to patch the airline theme before it gets applied, you can
supply the name of a function where you can modify the palette. >
let g:airline_theme_patch_func = 'AirlineThemePatch'
function! AirlineThemePatch(palette)
if g:airline_theme == 'badwolf'
for colors in values(a:palette.inactive)
let colors[3] = 245
endfor
endif
endfunction
<
* enable/disable usage of patched powerline font symbols >
let g:airline_powerline_fonts=0
<