Skip to content

Commit

Permalink
Add docs about FernInit autocmd
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Jul 30, 2020
1 parent 0e862fc commit 7c7c99a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/fern.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ INTERFACE |fern-interface|
VARIABLE |fern-variable|
COMMAND |fern-command|
FUNCTION |fern-function|
AUTOCMD |fern-autocmd|
CHANGELOG |fern-changelog|


Expand Down Expand Up @@ -478,7 +479,23 @@ fern#smart#scheme({default}, {schemes})
\ },
\ )
<
-----------------------------------------------------------------------------
AUTOCMD *fern-autocmd*

*User-FernInit*
User FernInit
After fern has loaded. Mainly for 3rd party plugins to know they can
use fern autoload functions.
>
function! s:fern_init() abort
" Now any autoload functions of fern are available
endfunction
augroup my-fern-init
autocmd!
autocmd User FernInit call s:fern_init()
augroup END
<

=============================================================================
CHANGELOG *fern-changelog*
Expand Down

0 comments on commit 7c7c99a

Please sign in to comment.