docs: added after/wants to migration guide and added an example that sets a key mode

This commit is contained in:
Folke Lemaitre 2022-12-23 19:03:30 +01:00
parent 5a1812a633
commit 74b076e030
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
3 changed files with 8 additions and 4 deletions

View File

@ -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)

View File

@ -63,5 +63,5 @@
- [x] Most emojis in "Configuration" aren't shown for me.
- [x] add section on how to uninstall
- [x] add `:Packadd` command or something similar
- [ ] headless install
- [ ] better keys handling
- [x] headless install
- [x] better keys handling

View File

@ -69,7 +69,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