mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
docs: add how to accomplish packer's rtp
This commit is contained in:
parent
45d669f61c
commit
acaf08cb48
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
- `config` don't support string type, use `fun(LazyPlugin)` instead.
|
||||||
- `module` is auto-loaded. No need to specify
|
- `module` is auto-loaded. No need to specify
|
||||||
- `keys` spec is [different](#%EF%B8%8F-lazy-key-mappings)
|
- `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 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
|
With lazy, this isn't needed for most of the lua dependencies. They can be installed just like normal plugins
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue