remove unneeded pipe

This commit is contained in:
Pei Yang Ching 2024-08-23 14:16:07 +02:00
parent 71727e5378
commit aa040ab538

View file

@ -6,7 +6,7 @@
inherit (builtins) map mapAttrs filter removeAttrs attrNames;
inherit (lib.attrsets) mapAttrsToList filterAttrs attrsToList;
inherit (lib.strings) concatLines concatMapStringsSep optionalString;
inherit (lib.trivial) showWarnings pipe;
inherit (lib.trivial) showWarnings;
inherit (lib.generators) mkLuaInline;
inherit (lib.nvim.dag) entryAfter mkLuarcSection resolveDag entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
@ -42,14 +42,7 @@ in {
toLuaKeymap = bind: "vim.keymap.set(${toLuaObject bind.mode}, ${toLuaObject bind.key}, ${toLuaObject (getAction bind)}, ${toLuaObject (getOpts bind)})";
maps =
pipe
# listOf mapOption
cfg.keymaps
[
(map toLuaKeymap)
concatLines
];
maps = concatLines (map toLuaKeymap cfg.keymaps);
keymaps = maps;
in {