Add a ready event. (#302)

This commit is contained in:
Sindre T. Strøm
2021-04-16 09:32:46 +02:00
committed by GitHub
parent 4271180aea
commit 090697e71f
3 changed files with 23 additions and 0 deletions

View File

@@ -454,6 +454,14 @@ For example, registering a handler for when a node is renamed is done like this:
==============================================================================
Lua module: nvim-tree.events *nvim-tree.events*
*nvim-tree.events.on_nvim_tree_ready()*
on_nvim_tree_ready({handler})
Registers a handler for when NvimTree has been initialized.
Parameters: ~
{handler} (function) Handler function, with the
signature `function()`.
*nvim-tree.events.on_node_renamed()*
on_node_renamed({handler})
Registers a handler for when a node is renamed.