parent
79fc09f6d7
commit
53c8799ad0
|
@ -410,6 +410,10 @@ function! startify#open_buffers(...) abort
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
wincmd =
|
wincmd =
|
||||||
|
|
||||||
|
if exists('#User#StartifyAllBuffersOpened')
|
||||||
|
autocmd <nomodeline> User StartifyAllBuffersOpened
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:get_lists {{{1
|
" Function: s:get_lists {{{1
|
||||||
|
@ -507,6 +511,9 @@ function! s:open_buffer(entry)
|
||||||
endif
|
endif
|
||||||
call s:check_user_options(a:entry.path)
|
call s:check_user_options(a:entry.path)
|
||||||
endif
|
endif
|
||||||
|
if exists('#User#StartifyBufferOpened')
|
||||||
|
autocmd <nomodeline> User StartifyBufferOpened
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:set_custom_section {{{1
|
" Function: s:set_custom_section {{{1
|
||||||
|
|
|
@ -695,8 +695,24 @@ $PWD and $OLDPWD are ignored.
|
||||||
==============================================================================
|
==============================================================================
|
||||||
AUTOCMD *startify-autocmd*
|
AUTOCMD *startify-autocmd*
|
||||||
|
|
||||||
When the Startify buffer is ready, it emits an User event. You can hook into
|
In certain situations Startify emits events which can be hooked into via
|
||||||
that to customize Startify even further:
|
|autocmd|s. Those can be used for further customization.
|
||||||
|
|
||||||
|
StartifyReady~
|
||||||
|
|
||||||
|
When the Startify buffer is ready.
|
||||||
|
|
||||||
|
StartifyBufferOpened~
|
||||||
|
|
||||||
|
For each buffer that got opened by Startify. When you open multiple files at
|
||||||
|
once (see |startify-usage|), this event fires multiple times as well.
|
||||||
|
|
||||||
|
StartifyAllBuffersOpened~
|
||||||
|
|
||||||
|
No matter how many buffers you open, this event fires only once after the
|
||||||
|
last buffer was opened.
|
||||||
|
|
||||||
|
Example:
|
||||||
>
|
>
|
||||||
autocmd User StartifyReady let &l:stl = ' This statusline rocks!'
|
autocmd User StartifyReady let &l:stl = ' This statusline rocks!'
|
||||||
<
|
<
|
||||||
|
|
Loading…
Reference in a new issue