lazy: add setupOpts support

This commit is contained in:
Pei Yang Ching 2024-07-24 12:52:47 +02:00
commit 323861f204
2 changed files with 34 additions and 3 deletions

View file

@ -66,10 +66,27 @@
# type= str;
# }
# Non-lz.n options
package = mkOption {
type = pluginType;
description = "Plugin package";
};
setupModule = mkOption {
type = nullOr str;
description = "Lua module to run setup function on.";
default = null;
};
setupOpts = mkOption {
type = submodule {freeformType = attrsOf anything;};
description = "Options to pass to the setup function";
default = {};
};
# lz.n options
before = mkOption {
type = nullOr luaInline;
description = "Code to run before plugin is loaded";