docs(readme): added explanation for dependencies (#137)

This commit is contained in:
max397574 2022-12-23 19:51:35 +01:00 committed by GitHub
parent aec3baa555
commit 3991cf56f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -588,6 +588,12 @@ For a real-life example, you can check my personal dots:
- `module` is auto-loaded. No need to specify
- `keys` spec is [different](#%EF%B8%8F-lazy-key-mappings)
With packer `wants`, `requires` and `after` can be used to manage dependencies.
With most of the lua dependencies this isn't necessary. They can be installed just like normal plugins (even with `lazy=true`) and will be loaded when other plugins need them.
The `dependencies` key can be used to group those required plugins with the one that requires them.
The plugins which are added as `dependencies` will always be lazy-loaded and loaded when the plugin is loaded.
### [paq-nvim](https://github.com/savq/paq-nvim)
- `as` ➡️ `name`