Skip to content

Commit 84cb79e

Browse files
authored
update auto-close answer
1 parent 3ba383d commit 84cb79e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,7 @@ You can toggle the help UI by pressing `g?`.
346346
3. `toggle` has a second parameter which allows to toggle without focusing the explorer (`require"nvim-tree".toggle(false, true)`).
347347
4. You can allow nvim-tree to behave like vinegar (see `:help nvim-tree-vinegar`).
348348
5. If you `:set nosplitright`, the files will open on the left side of the tree, placing the tree window in the right side of the file you opened.
349-
6. You can automatically close the tab/vim when nvim-tree is the last window in the tab. WARNING: other plugins or automation may interfere with this:
350-
```vim
351-
autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif
352-
```
349+
6. You can automatically close the tab/vim when nvim-tree is the last window in the tab: https://github.com/kyazdani42/nvim-tree.lua/discussions/1115. WARNING: other plugins or automation may interfere with this.
353350

354351
## Diagnostic Logging
355352

0 commit comments

Comments
 (0)