mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-12 21:33:41 +08:00
add AirlineRefresh command.
This commit is contained in:
parent
a75f91baba
commit
af330f6a47
|
@ -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*
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user