Added a new option auto_reload_on_write to allow users to disable it for performance reasons (#956)

This commit is contained in:
Steve Vermeulen
2022-02-09 20:06:07 +00:00
committed by GitHub
parent 5744c469a6
commit 4ec8c9f364
3 changed files with 40 additions and 30 deletions

View File

@@ -71,19 +71,20 @@ function.
>
require'nvim-tree'.setup {
disable_netrw = true,
hijack_netrw = true,
open_on_setup = false,
ignore_ft_on_setup = {},
update_to_buf_dir = {
disable_netrw = true,
hijack_netrw = true,
open_on_setup = false,
ignore_ft_on_setup = {},
update_to_buf_dir = {
enable = true,
auto_open = true,
},
auto_close = false,
open_on_tab = false,
hijack_cursor = false,
update_cwd = false,
diagnostics = {
auto_close = false,
auto_reload_on_write = true,
open_on_tab = false,
hijack_cursor = false,
update_cwd = false,
diagnostics = {
enable = false,
show_on_dirs = false,
icons = {
@@ -171,6 +172,11 @@ Here is a list of the options available in the setup call:
type: `boolean`
default: `false`
*nvim-tree.auto_reload_on_write*
- |auto_reload_on_write|: reloads the explorer every time a buffer is written to
type: `boolean`
default: `true`
*nvim-tree.open_on_tab*
- |open_on_tab|: opens the tree automatically when switching tabpage or opening a new
tabpage if the tree was previously open.