mirror of https://github.com/folke/lazy.nvim.git
docs: added `keys` to packer migration
This commit is contained in:
parent
7f10386e23
commit
d6304f0b42
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue