@@ -175,6 +175,7 @@ Subsequent calls to setup will replace the previous configuration.
175
175
open_on_setup = false,
176
176
open_on_setup_file = false,
177
177
open_on_tab = false,
178
+ focus_empty_on_setup = false,
178
179
ignore_buf_on_tab_change = {},
179
180
sort_by = "name",
180
181
root_dirs = {},
@@ -391,6 +392,7 @@ Hijack netrw windows (overridden if |disable_netrw| is `true`)
391
392
*nvim-tree.open_on_setup*
392
393
Will automatically open the tree when running setup if startup buffer is
393
394
a directory, is empty or is unnamed. nvim-tree window will be focused.
395
+ See | nvim-tree.focus_empty_on_setup |
394
396
Type: `boolean ` , Default: `false`
395
397
396
398
*nvim-tree.open_on_setup_file*
@@ -427,6 +429,11 @@ Opens the tree automatically when switching tabpage or opening a new tabpage
427
429
if the tree was previously open.
428
430
Type: `boolean ` , Default: `false`
429
431
432
+ *nvim-tree.focus_empty_on_setup*
433
+ When the tree opens as a result of | nvim-tree.open_on_setup | or
434
+ | nvim-tree.open_on_tab | and the buffer is empty, focus the buffer.
435
+ Type: `boolean ` , Default: `false`
436
+
430
437
*nvim-tree.sort_by*
431
438
Changes how files within the same directory are sorted.
432
439
Can be one of `name` , `case_sensitive` , `modification_time` , `extension` or a
0 commit comments