New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to not display root folder in filesystem #404
Comments
I think the root node is needed. |
Ah, apologies, allow me to clarify.
I'm adding my own rendering of
To avoid the duplication, I'd need
|
There is no way to configure this yet, but it won't be that hard to add. I almost wanted the same thing when I added winbar, but I ended up going for a blank winbar instead which I think looks better. I'll add the option. |
This has been added in the You just need to add this option: require("neo-tree").setup({
hide_root_node = true
}) BTW - It's kind of funny that this issue ended up being number 404, isn't it? 😄 |
@cseickel Thank you for the incredibly quick turn around! While the option certainly works, I was hoping that nodes would continue to render as if they were at their original level. In other words, with the option enabled, the tree now renders like: - dir
- dir
- ├── dir
- │ ├── file.lua
- │ └── file.lua
- └── dir
- dir whereas I expected the tree to continue to render as before, just without the root node: + ├── dir
+ ├── dir
+ │ ├── dir
+ │ │ ├── file.lua
+ │ │ └── file.lua
+ │ └── dir
+ └── dir |
Well, you can get to the desired indent by playing with the padding of the require("neo-tree").setup({
hide_root_node = true,
default_component_configs = {
indent = {
indent_size = 2,
padding = 3,
}
}
}) Adding the phantom indent guides is not going to happen though. |
Hi there!
I'm rendering the root of the file system tree outside of
neo-tree
. I'd like to not display the root twice, but I've been unable to find a way to tellneo-tree
not to render the root without modifyingneo-tree
itself. Unfortunately the docs don't elucidate anything here, at least not after a few readings. It also doesn't seem that custom renderers are able to skip rendering a node entirely. Is there something I'm missing?Thanks!
The text was updated successfully, but these errors were encountered: