Replies: 1 comment 3 replies
-
We did add public API: How about API something like tree.winid({opts}) *nvim-tree-api.tree.winid()*
Retrieve the winid of the open tree.
Parameters: ~
• {opts} (table) optional parameters
Options: ~
• {tabpage} (number) tabpage, 0 for current, default 0
Return: ~
(number) winid or nil if tree is not visible |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to see if I can get Fidget to avoid rendering on top of the nvim-tree window when it's open. I see there's already an event subscription mechanism, but is there any way to dynamically query the position and width of the nvim-tree window?
I saw this question but it suggests the only option is to enumerate through all window IDs and search for the nvim-tree window. Is there any API that is more direct?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions