fix another solarized2 dark gui typo. also, add :AirlineTheme command.

This commit is contained in:
Bailey Ling
2013-07-10 19:55:55 +00:00
parent 4fc6b31a82
commit 16447a6aa9
3 changed files with 19 additions and 1 deletions

View File

@@ -51,6 +51,17 @@ function! s:init()
endif
endfunction
function! s:change_theme(name)
let g:airline_theme = a:name
let load = g:airline#themes#{a:name}#normal
call airline#highlight(['normal'])
endfunction
function! s:get_airline_themes(a, l, p)
let files = split(globpath(&rtp, "autoload/airline/themes/*"), "\n")
return map(files, 'fnamemodify(v:val, ":t:r")')
endfunction
command! -nargs=1 -complete=customlist,<sid>get_airline_themes AirlineTheme call <sid>change_theme(<f-args>)
augroup airline
au!
autocmd ColorScheme * call airline#highlight(['normal'])