Skip to content

Commit 219984a

Browse files
committed
docs(#3088): extract api/events.lua
1 parent 3a08fa2 commit 219984a

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

doc/nvim-tree-lua.txt

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,20 +1024,6 @@ API: Git *nvim-tree-api.git*
10241024
git.reload() *nvim-tree-api.git.reload()*
10251025
Update the git status of the entire tree.
10261026

1027-
==============================================================================
1028-
API: Events *nvim-tree-api.events*
1029-
1030-
*nvim-tree-api.events.subscribe()*
1031-
events.subscribe({event_type}, {callback})
1032-
Register a handler for an event, see |nvim-tree-events|
1033-
1034-
Parameters: ~
1035-
• {event_type} (string) |nvim-tree-api.events.Event|
1036-
{callback} (function) see |nvim_tree_events_kind| for parameters
1037-
1038-
events.Event *nvim-tree-api.events.Event*
1039-
String enum: |nvim_tree_events_kind|
1040-
10411027

10421028
==============================================================================
10431029
API: Live Filter *nvim-tree-api.live_filter*
@@ -1491,8 +1477,8 @@ to |nvim_tree_registering_handlers| for more information.
14911477

14921478
*nvim_tree_registering_handlers*
14931479

1494-
Handlers are registered by calling |nvim-tree-api.events.subscribe()|
1495-
function with an |nvim-tree-api.events.Event|
1480+
Handlers are registered by calling |nvim_tree.api.events.subscribe()| function
1481+
with an |nvim_tree_events_kind|.
14961482

14971483
e.g. handler for node renamed: >lua
14981484

0 commit comments

Comments
 (0)