mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 04:18:03 +00:00
lib: add lznPluginTableType
This commit is contained in:
parent
f725060e1c
commit
75f754dcda
2 changed files with 8 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
|||
typesCustom = import ./custom.nix {inherit lib;};
|
||||
in {
|
||||
inherit (typesDag) dagOf;
|
||||
inherit (typesPlugin) pluginsOpt extraPluginType mkPluginSetupOption luaInline pluginType borderType lznPluginType;
|
||||
inherit (typesPlugin) pluginsOpt extraPluginType mkPluginSetupOption luaInline pluginType borderType lznPluginType lznPluginTableType;
|
||||
inherit (typesLanguage) diagnostics mkGrammarOption;
|
||||
inherit (typesCustom) anythingConcatLists char;
|
||||
}
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
check = x: lib.nvim.lua.isLuaInline x;
|
||||
};
|
||||
|
||||
lznPluginTableType = attrsOf lznPluginType;
|
||||
lznPluginType = submodule {
|
||||
options = {
|
||||
## Should probably infer from the actual plugin somehow
|
||||
|
@ -65,7 +66,9 @@
|
|||
# type= str;
|
||||
# }
|
||||
|
||||
package = pluginType;
|
||||
package = mkOption {
|
||||
type = pluginType;
|
||||
};
|
||||
|
||||
before = mkOption {
|
||||
type = nullOr luaInline;
|
||||
|
@ -81,7 +84,7 @@
|
|||
|
||||
event = mkOption {
|
||||
description = "Lazy-load on event";
|
||||
default = "null";
|
||||
default = null;
|
||||
type = let
|
||||
event = submodule {
|
||||
options = {
|
||||
|
@ -98,7 +101,7 @@
|
|||
};
|
||||
};
|
||||
in
|
||||
oneOf [str (listOf str) event];
|
||||
nullOr (oneOf [str (listOf str) event]);
|
||||
};
|
||||
|
||||
cmd = mkOption {
|
||||
|
@ -123,7 +126,7 @@
|
|||
};
|
||||
};
|
||||
in {
|
||||
inherit extraPluginType fromInputs pluginType luaInline lznPluginType;
|
||||
inherit extraPluginType fromInputs pluginType luaInline lznPluginType lznPluginTableType;
|
||||
|
||||
borderType = either (enum borderPresets) (listOf (either str (listOf str)));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue