@@ -17,6 +17,8 @@ INTERFACE |fern-interface|
1717 VARIABLE | fern-variable |
1818 COMMAND | fern-command |
1919 FUNCTION | fern-function |
20+ AUTOCMD | fern-autocmd |
21+ HIGHLIGHT | fern-highlight |
2022CHANGELOG | fern-changelog |
2123
2224
@@ -272,6 +274,8 @@ Users can customize above appearance by the following variables.
272274 OBSOLETE(v1.6.0)~
273275 No alternative feature is provided.
274276
277+ See | FernHighlight | and | fern-highlight | to change pre-defeined | highlight | .
278+
275279Or create user custom renderer to change the appearance completely.
276280See | fern-develop-renderer | for more details.
277281
@@ -548,7 +552,74 @@ fern#smart#scheme({default}, {schemes})
548552 \ 'bookmark': "\<C-^>",
549553 \ },
550554 \ )
555+
556+ -----------------------------------------------------------------------------
557+ AUTOCMD *fern-autocmd*
558+
559+ *FernHighlight*
560+ FernHighlight
561+ Invoked after a fern renderer and 3rd party plugins defined highlight.
562+ Use this autocmd to overwrite existing | highlight | like:
563+ >
564+ function! s:on_highlight() abort
565+ " Use brighter highlight on root node
566+ highlight link FernRootSymbol Title
567+ highlight link FernRootText Title
568+ endfunction
569+
570+ augroup my-fern-highlight
571+ autocmd!
572+ autocmd User FernHighlight call s:on_highlight()
573+ augroup END
551574<
575+ See | fern-highlight | for pre-defined | highlight | .
576+
577+ *FernSyntax*
578+ FernSyntax
579+ Invoked after a fern renderer and 3rd party plugins defined syntax.
580+ Use this | autocmd | to overwrite existing | syntax | .
581+ Note that if you'd like to change color/highlight, use | FernHighlight |
582+ autocmd instead. This autocmd exists for more complex (heavy) use.
583+
584+ -----------------------------------------------------------------------------
585+ HIGHLIGHT *fern-highlight*
586+
587+ FernMarkedLine *hl-FernMarkedLine*
588+ A | highlight | group used as a line highlight of mark | sign | .
589+
590+ FernMarkedText *hl-FernMarkedText*
591+ A | highlight | group used as a text highlight of mark | sign | .
592+
593+ FernRootSymbol *hl-FernRootSymbol*
594+ A | highlight | group of renderer used for root node symbol.
595+ An actual appearance will be determined by the | fern-renderer | thus
596+ this highlight might not be referred.
597+
598+ FernRootText *hl-FernRootText*
599+ A | highlight | group of renderer used for root node text.
600+ An actual appearance will be determined by the | fern-renderer | thus
601+ this highlight might not be referred.
602+
603+ FernLeafSymbol *hl-FernLeafSymbol*
604+ A | highlight | group of renderer used for leaf node symbol.
605+ An actual appearance will be determined by the | fern-renderer | thus
606+ this highlight might not be referred.
607+
608+ FernLeafText *hl-FernLeafText*
609+ A | highlight | group of renderer used for leaf node text.
610+ An actual appearance will be determined by the | fern-renderer | thus
611+ this highlight might not be referred.
612+
613+ FernBranchSymbol *hl-FernBranchSymbol*
614+ A | highlight | group of renderer used for branch node symbol.
615+ An actual appearance will be determined by the | fern-renderer | thus
616+ this highlight might not be referred.
617+
618+ FernBranchText *hl-FernBranchText*
619+ A | highlight | group of renderer used for branch node text.
620+ An actual appearance will be determined by the | fern-renderer | thus
621+ this highlight might not be referred.
622+
552623
553624=============================================================================
554625CHANGELOG *fern-changelog*
0 commit comments