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

@ -97,7 +97,7 @@
keys =
if typeOf spec.keys == "list" && length spec.keys > 0 && typeOf (head spec.keys) == "set"
then map toLuaLznKeySpec (filter (keySpec: keySpec.key != null) spec.keys)
# empty list or str or (listOf str)
# empty list, str, (listOf str), luaInline or (listOf luaInline)
else spec.keys;
};
lznSpecs = mapAttrsToList toLuaLznSpec cfg.plugins;