Rename user event Startified to StartifyReady

For backward compatability "Startified" still works as well.
This commit is contained in:
Marco Hinz 2018-11-05 21:05:17 +01:00
parent 8721af3cea
commit 79fc09f6d7
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F
2 changed files with 6 additions and 4 deletions

View file

@ -155,10 +155,12 @@ function! startify#insane_in_the_membrane() abort
if exists('##DirChanged') if exists('##DirChanged')
autocmd startify DirChanged <buffer> Startify autocmd startify DirChanged <buffer> Startify
endif endif
if exists('#User#Startified') if exists('#User#Startified')
doautocmd <nomodeline> User Startified doautocmd <nomodeline> User Startified
endif endif
if exists('#User#StartifyReady')
doautocmd <nomodeline> User StartifyReady
endif
endfunction endfunction
" Function: #session_load {{{1 " Function: #session_load {{{1

View file

@ -695,10 +695,10 @@ $PWD and $OLDPWD are ignored.
============================================================================== ==============================================================================
AUTOCMD *startify-autocmd* AUTOCMD *startify-autocmd*
When the Startify buffer is fully set up, it emits an User event. You can hook When the Startify buffer is ready, it emits an User event. You can hook into
into that to customize Startify even further: that to customize Startify even further:
> >
autocmd User Startified let &l:stl = ' This statusline rocks!' autocmd User StartifyReady let &l:stl = ' This statusline rocks!'
< <
Or use it to disable single mappings: |startify-faq-16|. Or use it to disable single mappings: |startify-faq-16|.