mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-26 02:09:48 +08:00
Merge pull request #1240 from chrisbra/1226
Add User autocommand for Theme changing
This commit is contained in:
commit
5eaf658b9c
|
@ -65,6 +65,8 @@ function! airline#switch_theme(name)
|
|||
let w:airline_lastmode = ''
|
||||
call airline#load_theme()
|
||||
|
||||
silent doautocmd User AirlineAfterTheme
|
||||
|
||||
" this is required to prevent clobbering the startup info message, i don't know why...
|
||||
call airline#check_mode(winnr())
|
||||
endfunction
|
||||
|
|
|
@ -168,6 +168,7 @@ Airline comes with some user-defined autocommands.
|
|||
|
||||
|AirlineAfterInit| after plugin is initialized, but before the statusline
|
||||
is replaced
|
||||
|AirlineAfterTheme| after theme of the statusline has been changed
|
||||
|AirlineToggledOn| after airline is activated and replaced the statusline
|
||||
|AirlineToggledOff| after airline is deactivated and the statusline is
|
||||
restored to the original
|
||||
|
|
Loading…
Reference in New Issue
Block a user