feat(resize): add ability to grow and shrink the tree when drawing (#1293)

Will adapt the view size based on the longest line.
fixes #865
This commit is contained in:
Kiyan
2022-05-31 09:05:00 +02:00
committed by GitHub
parent 6b26628acf
commit 2002b21be7
5 changed files with 31 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ Values may be functions. Warning: this may result in unexpected behaviour.
reload_on_bufenter = false,
respect_buf_cwd = false,
view = {
adaptive_size = false,
width = 30,
height = 30,
hide_root_folder = false,
@@ -418,6 +419,11 @@ Git integration with icons and colors.
*nvim-tree.view*
Window / buffer setup.
*nvim-tree.view.adaptive_size*
Resize the window on each draw based on the longest line.
Only works when |nvim-tree.view.side| is `left` or `right`.
Type: `boolean`, Default: `false`
*nvim-tree.view.hide_root_folder*
Hide the path of the current working directory on top of the tree.
Type: `boolean`, Default: `false`