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
|
## 🔌 Plugin Spec
|
||||||
|
|
||||||
| Property | Type | Description |
|
| Property | Type | Description |
|
||||||
| ---------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ---------------- | --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `[1]` | `string?` | Short plugin url. Will be expanded using `config.git.url_format` |
|
| `[1]` | `string?` | Short plugin url. Will be expanded using `config.git.url_format` |
|
||||||
| **dir** | `string?` | A directory pointing to a local plugin |
|
| **dir** | `string?` | A directory pointing to a local plugin |
|
||||||
| **url** | `string?` | A custom git url where the plugin is hosted |
|
| **url** | `string?` | A custom git url where the plugin is hosted |
|
||||||
|
@ -342,7 +342,7 @@ return {
|
||||||
performance = {
|
performance = {
|
||||||
cache = {
|
cache = {
|
||||||
enabled = true,
|
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.
|
-- Once one of the following events triggers, caching will be disabled.
|
||||||
-- To cache all modules, set this to `{}`, but that is not recommended.
|
-- To cache all modules, set this to `{}`, but that is not recommended.
|
||||||
-- The default is to disable on:
|
-- 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`
|
- `disable=true` ➡️ `enabled = false`
|
||||||
- `tag='*'` ➡️ `version="*"`
|
- `tag='*'` ➡️ `version="*"`
|
||||||
- `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)
|
||||||
|
|
||||||
### [paq-nvim](https://github.com/savq/paq-nvim)
|
### [paq-nvim](https://github.com/savq/paq-nvim)
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,6 @@ return {
|
||||||
{
|
{
|
||||||
"cshuaimin/ssr.nvim",
|
"cshuaimin/ssr.nvim",
|
||||||
-- init is always executed during startup, but doesn't load the plugin yet.
|
-- init is always executed during startup, but doesn't load the plugin yet.
|
||||||
-- init implies lazy loading
|
|
||||||
init = function()
|
init = function()
|
||||||
vim.keymap.set({ "n", "x" }, "<leader>cR", function()
|
vim.keymap.set({ "n", "x" }, "<leader>cR", function()
|
||||||
-- this require will automatically load the plugin
|
-- this require will automatically load the plugin
|
||||||
|
|
Loading…
Reference in New Issue