mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-02-04 05:09:49 +01:00
Compare commits
2 commits
71727e5378
...
feccaf477a
Author | SHA1 | Date | |
---|---|---|---|
|
feccaf477a | ||
|
aa040ab538 |
1 changed files with 5 additions and 12 deletions
|
@ -3,10 +3,10 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
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 (builtins) map mapAttrs filter;
|
||||
inherit (lib.attrsets) mapAttrsToList filterAttrs;
|
||||
inherit (lib.strings) concatLines concatMapStringsSep;
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue