diff --git a/README.md b/README.md index 0f354a3b..fec374dd 100644 --- a/README.md +++ b/README.md @@ -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 may only be run once; subsequent calls will result in a warning. - ```lua -- examples for your init.lua diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index 3d95ad54..7844bf7a 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -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 may only be run once; subsequent calls will result in a warning. -> -- examples for your init.lua -- 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 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 auto_reload_on_write = true,