feat - add open and close tree events (#1151)

This commit is contained in:
Harry Prior
2022-04-18 14:41:21 +01:00
committed by GitHub
parent ff6ef58b03
commit cff5a106b2
3 changed files with 44 additions and 0 deletions

View File

@@ -988,6 +988,22 @@ on_folder_created({handler})
on_folder_removed({handler})
Registers a handler for when a folder is removed.
Parameters: ~
{handler} (function) Handler function, with the
signature `function(payload)`.
*nvim-tree.events.on_tree_open()*
on_tree_open({handler})
Registers a handler for when NvimTree is opened.
Parameters: ~
{handler} (function) Handler function, with the
signature `function(payload)`.
*nvim-tree.events.on_tree_close()*
on_tree_close({handler})
Registers a handler for when NvimTree is closed.
Parameters: ~
{handler} (function) Handler function, with the
signature `function(payload)`.