Skip to content

Best way to get the current root node? #2549

Discussion options

You must be logged in to vote

Try :help nvim-tree-api.tree.get_nodes()

The root will contain absolute_path

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alex-courtis
Comment options

Answer selected by matthewKeville
@matthewKeville
Comment options

@alex-courtis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants