mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-28 03:59:49 +01:00
Compare commits
38 commits
51035c5468
...
2f1ce86ba4
Author | SHA1 | Date | |
---|---|---|---|
|
2f1ce86ba4 | ||
|
61dc2e74d9 | ||
|
5bd9a3870d | ||
|
cac156bad9 | ||
|
8011b8a675 | ||
|
22f9ca1f6d | ||
|
83432a1fb5 | ||
|
5bf238006e | ||
|
a5207983e1 | ||
|
b6439bc889 | ||
|
0f77675e84 | ||
|
369d5a3169 | ||
|
3064acad93 | ||
|
2d696c99d6 | ||
|
14733b8890 | ||
|
f1676e6936 | ||
|
9825c65f6c | ||
|
547f323ab6 | ||
|
3b6df3941d | ||
|
1928851e7e | ||
|
05e18c6631 | ||
|
aba0e3ec9c | ||
|
65f4fa41f1 | ||
|
3bf022d591 | ||
|
86e56965c8 | ||
|
5e7c92d298 | ||
|
4402102657 | ||
|
2ff606a743 | ||
|
6465ee7b41 | ||
|
c70e9e5eb5 | ||
|
67e9f8b8bc | ||
|
cf8ef6afe7 | ||
|
fade02f9c9 | ||
|
e3e0bd0b9b | ||
|
6c7cfca128 | ||
|
8f10767543 | ||
|
f37f90d824 | ||
|
b268b5c082 |
1 changed files with 9 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
inherit (builtins) map mapAttrs filter;
|
||||
inherit (lib.attrsets) mapAttrsToList filterAttrs;
|
||||
inherit (lib.strings) concatLines concatMapStringsSep optionalString;
|
||||
inherit (lib.trivial) showWarnings;
|
||||
inherit (lib.trivial) showWarnings pipe;
|
||||
inherit (lib.generators) mkLuaInline;
|
||||
inherit (lib.nvim.dag) entryAfter mkLuarcSection resolveDag entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
@ -42,7 +42,14 @@ in {
|
|||
|
||||
toLuaKeymap = bind: "vim.keymap.set(${toLuaObject bind.mode}, ${toLuaObject bind.key}, ${toLuaObject (getAction bind)}, ${toLuaObject (getOpts bind)})";
|
||||
|
||||
maps = concatLines (map toLuaKeymap cfg.keymaps);
|
||||
maps =
|
||||
pipe
|
||||
# listOf mapOption
|
||||
cfg.keymaps
|
||||
[
|
||||
(map toLuaKeymap)
|
||||
concatLines
|
||||
];
|
||||
|
||||
keymaps = maps;
|
||||
in {
|
||||
|
|
Loading…
Reference in a new issue