add AirlineRefresh command.

This commit is contained in:
Bailey Ling 2013-10-06 09:01:01 -04:00
parent a75f91baba
commit af330f6a47
3 changed files with 9 additions and 1 deletions

View File

@ -136,7 +136,10 @@ COMMANDS *airline-commands*
Toggles whitespace detection. Toggles whitespace detection.
:AirlineToggle *:AirlineToggle* :AirlineToggle *:AirlineToggle*
Toggles between the standard 'statusline' Toggles between the standard 'statusline' and airline.
:AirlineRefresh *:AirlineRefresh*
Refreshes all highlight groups.
============================================================================== ==============================================================================
CUSTOMIZATION *airline-customization* CUSTOMIZATION *airline-customization*

View File

@ -98,6 +98,7 @@ endfunction
command! -nargs=? -complete=customlist,<sid>get_airline_themes AirlineTheme call <sid>airline_theme(<f-args>) command! -nargs=? -complete=customlist,<sid>get_airline_themes AirlineTheme call <sid>airline_theme(<f-args>)
command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle() command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle()
command! AirlineToggle call <sid>airline_toggle() command! AirlineToggle call <sid>airline_toggle()
command! AirlineRefresh call airline#load_theme()
call <sid>airline_toggle() call <sid>airline_toggle()

View File

@ -25,5 +25,9 @@ describe 'commands'
execute 'AirlineTheme dark' execute 'AirlineTheme dark'
Expect g:airline_theme == 'dark' Expect g:airline_theme == 'dark'
end end
it 'should have a refresh command'
Expect exists(':AirlineRefresh') to_be_true
end
end end