diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index b3aa35ab..91ba33a0 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -337,20 +337,20 @@ See |nvim-tree-highlight| for details. *:NvimTreeCollapse* - Collapses the nvim-tree recursively. + Collapses the entire tree recursively. See |nvim-tree-api.tree.collapse_all()| - Calls: `api.tree.collapse_all(false)` + Calls: `api.tree.collapse_all(nil, { keep_buffers = false })` *:NvimTreeCollapseKeepBuffers* - Collapses the nvim-tree recursively, but keep the directories open, which are - used in an open buffer. + Collapses the entire tree recursively, but keep the directories open, which + are used in an open buffer. See |nvim-tree-api.tree.collapse_all()| - Calls: `api.tree.collapse_all(true)` + Calls: `api.tree.collapse_all(nil, { keep_buffers = true })` *:NvimTreeHiTest* @@ -1829,11 +1829,15 @@ tree.find_file({opts}) *nvim-tree-api.tree.find_file()* tree.search_node() *nvim-tree-api.tree.search_node()* Open the search dialogue as per the search_node action. -tree.collapse_all({keep_buffers}) *nvim-tree-api.tree.collapse_all()* - Collapse the tree. +tree.collapse_all({node}, {opts}) *nvim-tree-api.tree.collapse_all()* + Collapses the tree recursively. Parameters: ~ - • {keep_buffers} (boolean) do not collapse nodes with open buffers. + • {node} (Node|nil) collapse only children of this directory + • {opts} (table) optional parameters + + Options: ~ + • {keep_buffers} (boolean?) do not collapse nodes with open buffers, default false tree.expand_all({node}) *nvim-tree-api.tree.expand_all()* Recursively expand all nodes under the tree root or specified folder.