lib: fix lz.n map type

This commit is contained in:
Pei Yang Ching 2024-08-02 13:10:20 +02:00
parent 47bc9e9bd8
commit 994a7d7ee3

View file

@ -110,7 +110,7 @@
mode = mkOption { mode = mkOption {
description = "Modes to bind in"; description = "Modes to bind in";
type = listOf str; type = listOf str;
default = ["n"]; default = ["n" "x" "s" "o"];
}; };
}; };
}; };
@ -194,7 +194,7 @@
keys = mkOption { keys = mkOption {
description = "Lazy-load on key mapping"; description = "Lazy-load on key mapping";
default = null; default = null;
type = nullOr (oneOf [str (listOf str) lznKeysSpec]); # TODO: support lz.n.KeysSpec type = nullOr (oneOf [str (listOf lznKeysSpec) (listOf str)]); # TODO: support lz.n.KeysSpec
}; };
# TODO: enabled, beforeAll, colorscheme, priority, load # TODO: enabled, beforeAll, colorscheme, priority, load