Rename user event Startified to StartifyReady
For backward compatability "Startified" still works as well.
This commit is contained in:
parent
8721af3cea
commit
79fc09f6d7
|
@ -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
|
||||||
|
|
|
@ -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|.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue