Hi there. I'd like to be able to swithc between buffer focus and nvimtree focus without toggling the tree needlessly. How do i find out the state of the tree? What's the best way to accomplish this otherwise?
In pseudocode, im roughly trying to do something like this :
function my_utility()
if (nvimtree_is_open)
vim.cmd("NvimTreeFocus")
else:
vim.cmd("NvimTreeToggle")
vim.cmd("NvimTreeFocus")
end
Thank you