doc: setup call is only allowed once

This commit is contained in:
Alexander Courtis
2022-06-04 12:37:02 +10:00
parent a0f705995a
commit 3aeb59b075
2 changed files with 6 additions and 0 deletions

View File

@@ -83,6 +83,9 @@ SETUP *nvim-tree.setup*
To configure the tree (and make it runnable), you should call the setup
function.
Setup may only be run once; subsequent calls will result in a warning. Do not
invoke from, say, a packer config function and then call it again later.
Values may be functions. Warning: this may result in unexpected behaviour.
>
require("nvim-tree").setup { -- BEGIN_DEFAULT_OPTS