* feat(#2544): add API for querying win ID, api.tree.winid() * Document winid() opts Co-authored-by: Alexander Courtis <alex@courtis.org> * Fix winid() docs Co-authored-by: Alexander Courtis <alex@courtis.org> * Handle case where tabpage = 0 --------- Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
@@ -1698,6 +1698,18 @@ tree.is_visible({opts}) *nvim-tree-api.tree.is_visible()*
|
||||
Return: ~
|
||||
(boolean) nvim-tree is visible
|
||||
|
||||
tree.winid({opts}) *nvim-tree-api.tree.winid()*
|
||||
Retrieve the winid of the open tree.
|
||||
|
||||
Parameters: ~
|
||||
• {opts} (table) optional parameters
|
||||
|
||||
Options: ~
|
||||
• {tabpage} (number|nil) tabpage, 0 or nil for current, default nil
|
||||
|
||||
Return: ~
|
||||
(number) winid or nil if tree is not visible
|
||||
|
||||
==============================================================================
|
||||
6.2 API FILE SYSTEM *nvim-tree-api.fs*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user