feat(view): ability to centralize view on entering (#1310)

This commit is contained in:
kylo252
2022-06-07 02:09:58 +02:00
committed by GitHub
parent 821f050fda
commit 1caca62854
4 changed files with 22 additions and 0 deletions

View File

@@ -105,6 +105,7 @@ Values may be functions. Warning: this may result in unexpected behaviour.
respect_buf_cwd = false,
view = {
adaptive_size = false,
centralize_selection = false,
width = 30,
height = 30,
hide_root_folder = false,
@@ -454,6 +455,11 @@ Window / buffer setup.
Only works when |nvim-tree.view.side| is `left` or `right`.
Type: `boolean`, Default: `false`
*nvim-tree.view.centralize_selection*
When entering nvim-tree, reposition the view so that the current node is
initially centralized, see |zz|.
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`