mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
lazy: add assertions against common problems (#476)
* lazy: allow null package * lazy: add assertions for common pitfalls * lazy: pass plugin name to custom load function * lazy: format description Co-authored-by: raf <raf@notashelf.dev> --------- Co-authored-by: raf <raf@notashelf.dev>
This commit is contained in:
parent
52ad5ec34c
commit
fee1b46924
2 changed files with 38 additions and 8 deletions
|
@ -66,8 +66,12 @@
|
|||
lznPluginType = submodule {
|
||||
options = {
|
||||
package = mkOption {
|
||||
type = pluginType;
|
||||
description = "Plugin package";
|
||||
type = nullOr pluginType;
|
||||
description = ''
|
||||
Plugin package.
|
||||
|
||||
If null, a custom load function must be provided
|
||||
'';
|
||||
};
|
||||
|
||||
setupModule = mkOption {
|
||||
|
@ -173,7 +177,7 @@
|
|||
description = ''
|
||||
Lua code to override the `vim.g.lz_n.load()` function for a single plugin.
|
||||
|
||||
This will be wrapped in a function.
|
||||
This will be wrapped in a `function(name) ... end`.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue