mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 20:24:27 +08:00
add AirlineRefresh command.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user