mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-13 23:51:02 +00:00
docs: update lazy.plugins syntax
This commit is contained in:
parent
d49e46ab16
commit
256a8cf62c
1 changed files with 20 additions and 21 deletions
|
|
@ -136,8 +136,7 @@ plugins are managed by `lz.n`.
|
||||||
let
|
let
|
||||||
cfg = config.vim.your-plugin;
|
cfg = config.vim.your-plugin;
|
||||||
in {
|
in {
|
||||||
vim.lazy.plugins = [
|
vim.lazy.plugins.your-plugin = {
|
||||||
{
|
|
||||||
# instead of vim.startPlugins, use this:
|
# instead of vim.startPlugins, use this:
|
||||||
package = "your-plugin";
|
package = "your-plugin";
|
||||||
|
|
||||||
|
|
@ -157,9 +156,9 @@ in {
|
||||||
mode = "n";
|
mode = "n";
|
||||||
action = ":YourPluginCommand";
|
action = ":YourPluginCommand";
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue