change_root_to_node() does not work on files #2717
Labels
bug
Something isn't working
PR please
nvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciated
reproduced
Issue confirmed
Description
According to the help file, change_root_to_node will change the tree's root to a folder node or the parent of a file node.
However, it only works when I put cursor on a folder. If the cursor is on a file, it does not set the tree's root to its current folder.
Neovim version
Operating system and version
Windows 11
Windows variant
No response
nvim-tree version
master branch
Clean room replication
Steps to reproduce
Expected behavior
root directory changes to the file's folder
Actual behavior
Nothing happens
The text was updated successfully, but these errors were encountered: