Emit user events on opened buffers

Closes #334
This commit is contained in:
Marco Hinz 2018-11-05 21:21:43 +01:00
parent 79fc09f6d7
commit 53c8799ad0
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F
2 changed files with 25 additions and 2 deletions

View file

@ -410,6 +410,10 @@ function! startify#open_buffers(...) abort
endfor
wincmd =
if exists('#User#StartifyAllBuffersOpened')
autocmd <nomodeline> User StartifyAllBuffersOpened
endif
endfunction
" Function: s:get_lists {{{1
@ -507,6 +511,9 @@ function! s:open_buffer(entry)
endif
call s:check_user_options(a:entry.path)
endif
if exists('#User#StartifyBufferOpened')
autocmd <nomodeline> User StartifyBufferOpened
endif
endfunction
" Function: s:set_custom_section {{{1