update auto-close answer
This commit is contained in:
committed by
GitHub
parent
3ba383d591
commit
84cb79e760
@@ -346,10 +346,7 @@ You can toggle the help UI by pressing `g?`.
|
|||||||
3. `toggle` has a second parameter which allows to toggle without focusing the explorer (`require"nvim-tree".toggle(false, true)`).
|
3. `toggle` has a second parameter which allows to toggle without focusing the explorer (`require"nvim-tree".toggle(false, true)`).
|
||||||
4. You can allow nvim-tree to behave like vinegar (see `:help nvim-tree-vinegar`).
|
4. You can allow nvim-tree to behave like vinegar (see `:help nvim-tree-vinegar`).
|
||||||
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.
|
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.
|
||||||
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:
|
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.
|
||||||
```vim
|
|
||||||
autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif
|
|
||||||
```
|
|
||||||
|
|
||||||
## Diagnostic Logging
|
## Diagnostic Logging
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user