mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
lib: add lznPluginTableType
This commit is contained in:
parent
201b2969a1
commit
315c93b5c5
2 changed files with 8 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
||||||
typesCustom = import ./custom.nix {inherit lib;};
|
typesCustom = import ./custom.nix {inherit lib;};
|
||||||
in {
|
in {
|
||||||
inherit (typesDag) dagOf;
|
inherit (typesDag) dagOf;
|
||||||
inherit (typesPlugin) pluginsOpt extraPluginType mkPluginSetupOption luaInline pluginType lznPluginType;
|
inherit (typesPlugin) pluginsOpt extraPluginType mkPluginSetupOption luaInline pluginType lznPluginType lznPluginTableType;
|
||||||
inherit (typesLanguage) diagnostics mkGrammarOption;
|
inherit (typesLanguage) diagnostics mkGrammarOption;
|
||||||
inherit (typesCustom) anythingConcatLists char;
|
inherit (typesCustom) anythingConcatLists char;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
check = x: lib.nvim.lua.isLuaInline x;
|
check = x: lib.nvim.lua.isLuaInline x;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lznPluginTableType = attrsOf lznPluginType;
|
||||||
lznPluginType = submodule {
|
lznPluginType = submodule {
|
||||||
options = {
|
options = {
|
||||||
## Should probably infer from the actual plugin somehow
|
## Should probably infer from the actual plugin somehow
|
||||||
|
@ -64,7 +65,9 @@
|
||||||
# type= str;
|
# type= str;
|
||||||
# }
|
# }
|
||||||
|
|
||||||
package = pluginType;
|
package = mkOption {
|
||||||
|
type = pluginType;
|
||||||
|
};
|
||||||
|
|
||||||
before = mkOption {
|
before = mkOption {
|
||||||
type = nullOr luaInline;
|
type = nullOr luaInline;
|
||||||
|
@ -80,7 +83,7 @@
|
||||||
|
|
||||||
event = mkOption {
|
event = mkOption {
|
||||||
description = "Lazy-load on event";
|
description = "Lazy-load on event";
|
||||||
default = "null";
|
default = null;
|
||||||
type = let
|
type = let
|
||||||
event = submodule {
|
event = submodule {
|
||||||
options = {
|
options = {
|
||||||
|
@ -97,7 +100,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
oneOf [str (listOf str) event];
|
nullOr (oneOf [str (listOf str) event]);
|
||||||
};
|
};
|
||||||
|
|
||||||
cmd = mkOption {
|
cmd = mkOption {
|
||||||
|
@ -122,7 +125,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
inherit extraPluginType fromInputs pluginType luaInline lznPluginType;
|
inherit extraPluginType fromInputs pluginType luaInline lznPluginType lznPluginTableType;
|
||||||
|
|
||||||
pluginsOpt = {
|
pluginsOpt = {
|
||||||
description,
|
description,
|
||||||
|
|
Loading…
Reference in a new issue