docs: clarified that only top-level submodules are merged in the final spec. #139

This commit is contained in:
Folke Lemaitre 2022-12-25 14:30:41 +01:00
parent 90952239d2
commit 3efb849d73
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -582,7 +582,7 @@ Files from runtime directories are always sourced in alphabetical order.
Some users may want to split their plugin specs in multiple files. Some users may want to split their plugin specs in multiple files.
Instead of passing a spec table to `setup()`, you can use a Lua module. Instead of passing a spec table to `setup()`, you can use a Lua module.
The specs from the **module** and any **sub-modules** will be merged together in the final spec, The specs from the **module** and any top-level **sub-modules** will be merged together in the final spec,
so it is not needed to add `require` calls in your main plugin file to the other files. so it is not needed to add `require` calls in your main plugin file to the other files.
The benefits of using this approach: The benefits of using this approach: