mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
remove unneeded pipe
This commit is contained in:
parent
a6cfdb10fb
commit
e5a2c58f26
1 changed files with 2 additions and 9 deletions
|
@ -6,7 +6,7 @@
|
||||||
inherit (builtins) map mapAttrs filter removeAttrs attrNames;
|
inherit (builtins) map mapAttrs filter removeAttrs attrNames;
|
||||||
inherit (lib.attrsets) mapAttrsToList filterAttrs attrsToList;
|
inherit (lib.attrsets) mapAttrsToList filterAttrs attrsToList;
|
||||||
inherit (lib.strings) concatLines concatMapStringsSep optionalString;
|
inherit (lib.strings) concatLines concatMapStringsSep optionalString;
|
||||||
inherit (lib.trivial) showWarnings pipe;
|
inherit (lib.trivial) showWarnings;
|
||||||
inherit (lib.generators) mkLuaInline;
|
inherit (lib.generators) mkLuaInline;
|
||||||
inherit (lib.nvim.dag) entryAfter mkLuarcSection resolveDag entryAnywhere;
|
inherit (lib.nvim.dag) entryAfter mkLuarcSection resolveDag entryAnywhere;
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
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)})";
|
toLuaKeymap = bind: "vim.keymap.set(${toLuaObject bind.mode}, ${toLuaObject bind.key}, ${toLuaObject (getAction bind)}, ${toLuaObject (getOpts bind)})";
|
||||||
|
|
||||||
maps =
|
maps = concatLines (map toLuaKeymap cfg.keymaps);
|
||||||
pipe
|
|
||||||
# listOf mapOption
|
|
||||||
cfg.keymaps
|
|
||||||
[
|
|
||||||
(map toLuaKeymap)
|
|
||||||
concatLines
|
|
||||||
];
|
|
||||||
|
|
||||||
keymaps = maps;
|
keymaps = maps;
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in a new issue