mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-12 16:35:30 +00:00
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:
parent
52042f624c
commit
d8e6483c64
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue