From 84cb79e760964820391bd5e66579e1bdb36f1103 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Sat, 28 May 2022 12:13:50 +1000 Subject: [PATCH] update auto-close answer --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index b55c464a..45c2507b 100644 --- a/README.md +++ b/README.md @@ -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)`). 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. -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: -```vim -autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif -``` +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. ## Diagnostic Logging