From 3991cf56f86adacb308e99fd23bcec8f6953c06c Mon Sep 17 00:00:00 2001 From: max397574 <81827001+max397574@users.noreply.github.com> Date: Fri, 23 Dec 2022 19:51:35 +0100 Subject: [PATCH] docs(readme): added explanation for dependencies (#137) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index e2328c1..28924ee 100644 --- a/README.md +++ b/README.md @@ -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`