feat(view): ability to centralize view on entering (#1310)
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user