From 2c632e849fd7944d463df5baa237d3784379deeb Mon Sep 17 00:00:00 2001 From: Alexandre Desjardins Date: Fri, 30 Dec 2022 18:13:54 -0500 Subject: [PATCH] docs: add how to accomplish packer's rtp (#259) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index deed95a..8dd429b 100644 --- a/README.md +++ b/README.md @@ -674,6 +674,12 @@ For a real-life example, you can check my personal dots: - `config` don't support string type, use `fun(LazyPlugin)` instead. - `module` is auto-loaded. No need to specify - `keys` spec is [different](#%EF%B8%8F-lazy-key-mappings) +- `rtp` can be accomplished with: + ```lua + config = function(plugin) + vim.opt.rtp:append(plugin.dir .. "/rtpPath") + end + ``` With packer `wants`, `requires` and `after` can be used to manage dependencies. With lazy, this isn't needed for most of the lua dependencies. They can be installed just like normal plugins