From c18aa389a33a02c65beb3926cffef6bf1ec1a43a Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Tue, 28 Jun 2022 11:27:14 +1000 Subject: [PATCH] doc: setup may be invoked multiple times --- README.md | 2 -- doc/nvim-tree-lua.txt | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) 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,