diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index b0c42c1..e54829e 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -44,6 +44,7 @@ function! airline#init#bootstrap() \ 'base16.*': 'base16', \ 'mo[l|n]okai': 'molokai', \ 'wombat.*': 'wombat', + \ '.*zenburn.*': 'zenburn', \ '.*solarized.*': 'solarized', \ }, 'keep') diff --git a/autoload/airline/themes/zenburn.vim b/autoload/airline/themes/zenburn.vim index 69c50fe..a90e236 100644 --- a/autoload/airline/themes/zenburn.vim +++ b/autoload/airline/themes/zenburn.vim @@ -1,13 +1,6 @@ let g:airline#themes#zenburn#palette = {} function! s:generate() - " This theme is an example of how to use helper functions to extract highlight - " values from the corresponding colorscheme. It was written in a hurry, so it - " is very minimalistic. If you are a zenburn user and want to make updates, - " please send pull requests. - - " Here are examples where the entire highlight group is copied and an airline - " compatible color array is generated. let s:N1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Folded', 'fg'], 'bold') let s:N2 = airline#themes#get_highlight('Folded') let s:N3 = airline#themes#get_highlight('NonText') @@ -31,15 +24,12 @@ function! s:generate() let g:airline#themes#zenburn#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3, s:file) let g:airline#themes#zenburn#palette.replace_modified = g:airline#themes#zenburn#palette.normal_modified - " Sometimes you want to mix and match colors from different groups, you can do - " that with this method. let s:V1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Identifier', 'fg'], 'bold') let s:V2 = airline#themes#get_highlight2(['Identifier', 'fg'], ['Folded', 'bg']) let s:V3 = s:N3 let g:airline#themes#zenburn#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3, s:file) let g:airline#themes#zenburn#palette.visual_modified = g:airline#themes#zenburn#palette.normal_modified - " And of course, you can always do it manually as well. let s:IA = airline#themes#get_highlight('NonText') let g:airline#themes#zenburn#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:file) endfunction @@ -49,3 +39,4 @@ augroup airline_zenburn autocmd! autocmd ColorScheme * call generate() augroup END +