doc: setup may be invoked multiple times

This commit is contained in:
Alexander Courtis 2022-06-28 11:27:14 +10:00
parent e401a4c957
commit c18aa389a3
2 changed files with 1 additions and 5 deletions

View File

@ -51,8 +51,6 @@ use {
Setup should be run in a lua file or in a lua heredoc [:help lua-heredoc](https://neovim.io/doc/user/lua.html) if using in a vim file. Setup should be run in a lua file or in a lua heredoc [:help lua-heredoc](https://neovim.io/doc/user/lua.html) if using in a vim file.
Setup may only be run once; subsequent calls will result in a warning.
```lua ```lua
-- examples for your init.lua -- examples for your init.lua

View File

@ -58,8 +58,6 @@ Requirements
Setup should be run in a lua file or in a |lua-heredoc| if using in a vim file. Setup should be run in a lua file or in a |lua-heredoc| if using in a vim file.
Setup may only be run once; subsequent calls will result in a warning.
>
-- examples for your init.lua -- examples for your init.lua
-- empty setup using defaults -- empty setup using defaults
@ -151,7 +149,7 @@ You must run setup() function to initialise nvim-tree.
setup() function takes one optional argument: configuration table. If omitted setup() function takes one optional argument: configuration table. If omitted
nvim-tree will be initialised with default configuration. nvim-tree will be initialised with default configuration.
Setup may only be run once; subsequent calls will result in a warning. Subsequent calls to setup will replace the previous configuration.
> >
require("nvim-tree").setup { -- BEGIN_DEFAULT_OPTS require("nvim-tree").setup { -- BEGIN_DEFAULT_OPTS
auto_reload_on_write = true, auto_reload_on_write = true,