mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-09-02 04:46:57 +08:00
refactor the rest of the themes to use refresh. resolves #288.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user