docs: added `keys` to packer migration

This commit is contained in:
Folke Lemaitre 2022-12-23 12:26:19 +01:00
parent 7f10386e23
commit d6304f0b42
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 24 additions and 24 deletions

View File

@ -80,7 +80,7 @@ require("lazy").setup({
## 🔌 Plugin Spec
| Property | Type | Description |
| ---------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ---------------- | --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `[1]` | `string?` | Short plugin url. Will be expanded using `config.git.url_format` |
| **dir** | `string?` | A directory pointing to a local plugin |
| **url** | `string?` | A custom git url where the plugin is hosted |
@ -342,7 +342,7 @@ return {
performance = {
cache = {
enabled = true,
path = vim.fn.stdpath("state") .. "/lazy/cache",
path = vim.fn.stdpath("cache") .. "/lazy/cache",
-- Once one of the following events triggers, caching will be disabled.
-- To cache all modules, set this to `{}`, but that is not recommended.
-- The default is to disable on:
@ -583,6 +583,7 @@ For a real-life example, you can check my personal dots:
- `disable=true` ➡️ `enabled = false`
- `tag='*'` ➡️ `version="*"`
- `module` is auto-loaded. No need to specify
- `keys` spec is [different](#%EF%B8%8F-lazy-key-mappings)
### [paq-nvim](https://github.com/savq/paq-nvim)

View File

@ -58,7 +58,6 @@ return {
{
"cshuaimin/ssr.nvim",
-- init is always executed during startup, but doesn't load the plugin yet.
-- init implies lazy loading
init = function()
vim.keymap.set({ "n", "x" }, "<leader>cR", function()
-- this require will automatically load the plugin