refactor the rest of the themes to use refresh. resolves #288.

This commit is contained in:
Bailey Ling
2013-09-27 21:43:32 -04:00
parent 2f3b33daae
commit a81d1cd9c7
5 changed files with 55 additions and 76 deletions
+2 -6
View File
@@ -1,6 +1,6 @@
let g:airline#themes#zenburn#palette = {}
function! s:generate()
function! airline#themes#zenburn#refresh()
let g:airline#themes#zenburn#palette.accents = {
\ 'red': airline#themes#get_highlight('Constant'),
\ }
@@ -40,9 +40,5 @@ function! s:generate()
\ }
endfunction
call s:generate()
augroup airline_zenburn
autocmd!
autocmd ColorScheme * call <sid>generate()
augroup END
call airline#themes#zenburn#refresh()