Autoresize the tree view when open/close folders.
It also supports Nuclide file tree
From Atom go to Settings ➔ Install or with the command Settings View:Install Packages and Themes
and then search for tree-view-autoresize
Or with apm:
apm install tree-view-autoresize