feat(api): api.tree.open feature parity with api.tree.toggle (#1955)
This commit is contained in:
committed by
GitHub
parent
f3b73725c5
commit
215b29bfad
@@ -1256,6 +1256,8 @@ api.tree.open({opts}) *nvim-tree.api.tree.open()*
|
||||
Options: ~
|
||||
• {path} (string) root directory for the tree
|
||||
• {current_window} (boolean, false) open the tree in the current window
|
||||
• {find_file} (boolean, false) find the current buffer
|
||||
• {update_root} (boolean, false) see |nvim-tree.update_focused_file.update_root|
|
||||
|
||||
api.tree.toggle({opts}) *nvim-tree.api.tree.toggle()*
|
||||
Open or close the tree.
|
||||
@@ -1266,9 +1268,9 @@ api.tree.toggle({opts}) *nvim-tree.api.tree.toggle()*
|
||||
Options: ~
|
||||
• {path} (string) root directory for the tree
|
||||
• {current_window} (boolean, false) open the tree in the current window
|
||||
• {focus} (boolean, true) focus the tree when opening
|
||||
• {find_file} (boolean, false) find the current buffer
|
||||
• {update_root} (boolean, false) see |nvim-tree.update_focused_file.update_root|
|
||||
• {focus} (boolean, true) focus the tree when opening
|
||||
|
||||
api.tree.close() *nvim-tree.api.tree.close()*
|
||||
Close the tree, affecting all tabs as per |nvim-tree.tab.sync.close|
|
||||
|
||||
Reference in New Issue
Block a user