mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 21:06:46 +00:00
docs: updated
This commit is contained in:
parent
ae4d912e16
commit
3d77e4514e
16 changed files with 565 additions and 268 deletions
|
@ -3,3 +3,31 @@ sidebar_position: 4
|
|||
---
|
||||
# 📦 Packages
|
||||
|
||||
**lazy.nvim** supports three ways for plugins to define their dependencies and configuration.
|
||||
|
||||
- **Lazy**: `.lazy.lua` file
|
||||
- **Rockspec**: [luarocks](https://luarocks.org/) `*-scm-1.rockspec` [file](https://github.com/luarocks/luarocks/wiki/Rockspec-format)
|
||||
- **Packspec**: `pkg.json` (experimental, since the [format](https://github.com/neovim/packspec/issues/41) is not quite there yet)
|
||||
|
||||
:::info
|
||||
|
||||
Package specs are always loaded in the scope of the plugin (using [specs](/spec#advanced)),
|
||||
so that when the plugin is disabled, none of the specs are loaded.
|
||||
|
||||
:::
|
||||
|
||||
## Lazy
|
||||
|
||||
Using a `.lazy.lua` file is the recommended way to define your plugin dependencies and configuration.
|
||||
Syntax is the same as any plugin spec.
|
||||
|
||||
## Rockspec
|
||||
|
||||
When a plugin contains a `*-scm-1.rockspec` file, **lazy.nvim** will automatically load its [`rocks`](/spec#setup) dependencies.
|
||||
|
||||
## Packspec
|
||||
|
||||
Supports the [pkg.json](https://github.com/nvim-lua/nvim-package-specification/issues/41) format,
|
||||
with a lazy extension in `lazy`.
|
||||
`lazy` can contain any valid lazy spec fields. They will be added to the plugin's spec.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue