wrapper/lazy: allow luaInline as a type in keys

One way of using keys is `{ "<C-x>", mode = "n" }`, which isn't possible
in nvf without luaInline
This commit is contained in:
diniamo 2024-12-20 18:57:35 +01:00
commit d8e6483c64
3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{lib, ...}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) enum listOf submodule nullOr str bool int attrsOf anything either oneOf lines;
inherit (lib.nvim.types) pluginType;
inherit (lib.nvim.types) pluginType luaInline;
inherit (lib.nvim.config) mkBool;
lznKeysSpec = submodule {
@ -135,7 +135,7 @@
};
keys = mkOption {
type = nullOr (oneOf [str (listOf lznKeysSpec) (listOf str)]);
type = nullOr (oneOf [(listOf lznKeysSpec) str (listOf str) luaInline (listOf luaInline)]);
default = null;
example = ''
keys = [