mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
docs: added after/wants to migration guide and added an example that sets a key mode
This commit is contained in:
parent
5a1812a633
commit
74b076e030
3 changed files with 8 additions and 4 deletions
|
@ -254,7 +254,8 @@ return {
|
|||
{
|
||||
"monaqa/dial.nvim",
|
||||
-- lazy-load on keys
|
||||
keys = { "<C-a>", "<C-x>" },
|
||||
-- mode is `n` by default. For more advanced options, check the section on key mappings
|
||||
keys = { "<C-a>", { "<C-x>", mode = "n" } },
|
||||
},
|
||||
|
||||
-- local plugins need to be explicitly configured with dir
|
||||
|
@ -582,6 +583,8 @@ For a real-life example, you can check my personal dots:
|
|||
- `lock` ➡️ `pin`
|
||||
- `disable=true` ➡️ `enabled = false`
|
||||
- `tag='*'` ➡️ `version="*"`
|
||||
- `after` ℹ️ **_not needed_** for most use-cases. Use `dependencies` otherwise.
|
||||
- `wants` ℹ️ **_not needed_** for most use-cases. Use `dependencies` otherwise.
|
||||
- `module` is auto-loaded. No need to specify
|
||||
- `keys` spec is [different](#%EF%B8%8F-lazy-key-mappings)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue