Skip to content

Commit 72ef08b

Browse files
committed
feat(#2948): improve doc
1 parent 47156b3 commit 72ef08b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/nvim-tree-lua.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -2770,18 +2770,16 @@ configurations for different types of prompts.
27702770
==============================================================================
27712771
11. DECORATORS *nvim-tree-decorators*
27722772

2773-
Highlighting and icons for nodes are is provided by Decorators. You may provide
2773+
Highlighting and icons for nodes are provided by Decorators. You may provide
27742774
your own in addition to the builtin decorators.
27752775

27762776
Decorators may:
27772777
- Add icons
27782778
- Set highlight group for the name or icons
27792779
- Override node icon
27802780

2781-
See `api_decorator.lua` for decorator class definition and full documentation.
2782-
27832781
Specify decorators and their precedence via |nvim-tree.renderer.decorators|
2784-
e.g. defaults with a user decorator being overridden only by Cut: >lua
2782+
e.g. defaults with a user decorator class being overridden only by Cut: >lua
27852783
{
27862784
"Git",
27872785
"Open",
@@ -2793,6 +2791,9 @@ e.g. defaults with a user decorator being overridden only by Cut: >lua
27932791
MyDecorator,
27942792
"Cut",
27952793
}
2794+
2795+
See `nvim-tree/_meta/api_decorator.lua` for full
2796+
`nvim_tree.api.decorator.UserDecorator` class documentation.
27962797
<
27972798
==============================================================================
27982799
11.1. DECORATOR EXAMPLE *nvim-tree-decorator-example*

0 commit comments

Comments
 (0)