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
+3 -6
View File
@@ -1,6 +1,6 @@
let g:airline#themes#tomorrow#palette = {}
function! s:generate()
function! airline#themes#tomorrow#refresh()
let g:airline#themes#tomorrow#palette.accents = {
\ 'red': airline#themes#get_highlight('Constant'),
\ }
@@ -40,8 +40,5 @@ function! s:generate()
\ }
endfunction
call s:generate()
augroup airline_tomorrow
autocmd!
autocmd ColorScheme * call <sid>generate() | call airline#load_theme()
augroup END
call airline#themes#tomorrow#refresh()