chore: remove auto close
also fix emmylua errors in log.lua file fixes #1005 fixes #871
This commit is contained in:
@@ -117,7 +117,6 @@ require'nvim-tree'.setup {
|
||||
-- setup with all defaults
|
||||
-- each of these are documented in `:help nvim-tree.OPTION_NAME`
|
||||
require'nvim-tree'.setup { -- BEGIN_DEFAULT_OPTS
|
||||
auto_close = false,
|
||||
auto_reload_on_write = true,
|
||||
disable_netrw = false,
|
||||
hide_root_folder = false,
|
||||
@@ -331,6 +330,10 @@ 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, false)`).
|
||||
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
|
||||
```
|
||||
|
||||
## Diagnostic Logging
|
||||
|
||||
|
||||
Reference in New Issue
Block a user