mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-17 09:21:19 +00:00
lazy: add setupOpts support
This commit is contained in:
parent
4f08f76036
commit
323861f204
2 changed files with 34 additions and 3 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue