File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -170,12 +170,17 @@ Setup should be run in a lua file or in a |lua-heredoc| if using in a vim file.
170
170
==============================================================================
171
171
4. SETUP *nvim-tree-setup*
172
172
173
- You must run setup() function to initialise nvim-tree.
173
+ You must run setup() function once to initialise nvim-tree. It may be called
174
+ again to apply a change in configuration without restarting nvim.
174
175
175
176
setup() function takes one optional argument: configuration table. If omitted
176
177
nvim-tree will be initialised with default configuration.
178
+ >
179
+ The first setup() call is cheap: it does nothing more than validate / apply
180
+ the configuration. Nothing happens until the tree is first opened.
177
181
178
- Subsequent calls to setup will replace the previous configuration.
182
+ Subsequent setup() calls are expensive as they tear down the world before
183
+ applying configuration.
179
184
>
180
185
require("nvim-tree").setup { -- BEGIN_DEFAULT_OPTS
181
186
auto_reload_on_write = true,
You can’t perform that action at this time.
0 commit comments