Skip to content

Commit a625c60

Browse files
committed
Add 'User FernInit' autocmd to tell 3rd parties
3rd party plugins can use that autocmd to initialize like function! s:init() abort " Any autocmd function of fern is available here call fern#hook#add(...) endfunction augroup fern-xxxxx-internal autocmd! * autocmd User FernInit ++once s:init() augroup END
1 parent ad432d2 commit a625c60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin/fern.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ augroup fern_internal
3131
autocmd! *
3232
autocmd BufReadCmd fern://* ++nested call s:BufReadCmd()
3333
autocmd SessionLoadPost fern://* ++nested call s:BufReadCmd()
34+
autocmd User FernInit ++once :
3435
augroup END
36+
37+
" Tell 3rd parties that fern has initialized
38+
doautocmd <nomodeline> User FernInit

0 commit comments

Comments
 (0)