docs: migration guide

This commit is contained in:
Folke Lemaitre 2022-12-20 10:24:57 +01:00
parent 2f59ead574
commit 36cb7ea597
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 15 additions and 9 deletions

View File

@ -466,18 +466,24 @@ return {
- any lua file in `~/.config/nvim/lua/plugins/*.lua` will be automatically merged in the main plugin spec
## 📦 Differences with Packer
## 📦 Migration Guide
- **Plugin Spec**:
### [packer.nvim](https://github.com/wbthomason/packer.nvim)
- `setup` => `init`
- `requires` => `dependencies`
- `as` => `name`
- `opt` => `lazy`
- `run` => `build`
- `lock` => `pin`
- `setup` ➡️ `init`
- `requires` ➡️ `dependencies`
- `as` ➡️ `name`
- `opt` ➡️ `lazy`
- `run` ➡️ `build`
- `lock` ➡️ `pin`
- `module` is auto-loaded. No need to specify
### [paq-nvim](https://github.com/savq/paq-nvim)
- `as` ➡️ `name`
- `opt` ➡️ `lazy`
- `run` ➡️ `build`
## ❌ Uninstalling
To uninstall **lazy.nvim**, you need to remove the following files and directories: