mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 15:59:23 +08:00
add AirlineRefresh command.
This commit is contained in:
parent
a75f91baba
commit
af330f6a47
|
@ -136,7 +136,10 @@ COMMANDS *airline-commands*
|
|||
Toggles whitespace detection.
|
||||
|
||||
:AirlineToggle *:AirlineToggle*
|
||||
Toggles between the standard 'statusline'
|
||||
Toggles between the standard 'statusline' and airline.
|
||||
|
||||
:AirlineRefresh *:AirlineRefresh*
|
||||
Refreshes all highlight groups.
|
||||
|
||||
==============================================================================
|
||||
CUSTOMIZATION *airline-customization*
|
||||
|
|
|
@ -98,6 +98,7 @@ endfunction
|
|||
command! -nargs=? -complete=customlist,<sid>get_airline_themes AirlineTheme call <sid>airline_theme(<f-args>)
|
||||
command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle()
|
||||
command! AirlineToggle call <sid>airline_toggle()
|
||||
command! AirlineRefresh call airline#load_theme()
|
||||
|
||||
call <sid>airline_toggle()
|
||||
|
||||
|
|
|
@ -25,5 +25,9 @@ describe 'commands'
|
|||
execute 'AirlineTheme dark'
|
||||
Expect g:airline_theme == 'dark'
|
||||
end
|
||||
|
||||
it 'should have a refresh command'
|
||||
Expect exists(':AirlineRefresh') to_be_true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user