nvim-tree.lua
nvim-tree.lua copied to clipboard
Add an option to modify tree padding/indentation
I think adding an indent/padding to the tree would be nice.
Describe the solution you'd like
Add an option to modify the padding/indent of children in the tree (components/padding.lua)
function M.get_padding(depth, idx, nodes_number, node, markers) local padding = " "
Describe alternatives you've considered
Editing the source file directly and adding a space " ".
Before:

After:

It looks a bit nicer!
Add an option to modify the padding/indent of children in the tree (components/padding.lua)
view.width.padding can take a function, a similar callback may be added.
Possibility: pass the node to the callback.
I will try to make the PR.