docs: fixed code block

This commit is contained in:
Folke Lemaitre 2022-12-31 00:32:19 +01:00
commit d1ed91d8c7
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -675,11 +675,12 @@ For a real-life example, you can check my personal dots:
- `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: - `rtp` can be accomplished with:
```lua
config = function(plugin) ```lua
vim.opt.rtp:append(plugin.dir .. "/rtpPath") config = function(plugin)
end vim.opt.rtp:append(plugin.dir .. "/custom-rtp")
``` 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