mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-27 08:09:48 +01:00
Compare commits
40 commits
2f1ce86ba4
...
51035c5468
Author | SHA1 | Date | |
---|---|---|---|
|
51035c5468 | ||
|
477f2fb8c7 | ||
|
7bace58ab4 | ||
|
ca86aaa3af | ||
|
c991b2adea | ||
|
6d42de8aba | ||
|
39ebfbcd98 | ||
|
0daad3e51a | ||
|
7075872810 | ||
|
4e13acfac3 | ||
|
3a88caeda6 | ||
|
4c230a0460 | ||
|
cfaa2e3e77 | ||
|
217079b546 | ||
|
6fe0103209 | ||
|
6d2d9cd60e | ||
|
b1cc8bb27b | ||
|
90dd876c53 | ||
|
146fcf25e6 | ||
|
5eadc2937d | ||
|
f683cd36e0 | ||
|
bd6c228e5c | ||
|
d660aae9be | ||
|
4014ab0a01 | ||
|
659c4b5ca2 | ||
|
23c6f319cd | ||
|
57828912bb | ||
|
56a3d45ac7 | ||
|
5745fd8103 | ||
|
5a045d2ea0 | ||
|
7648cb8c7e | ||
|
6e3292f2c4 | ||
|
7abd0f8626 | ||
|
3800a1c016 | ||
|
6cd3363942 | ||
|
6d7d5ee190 | ||
|
b6c1a7145e | ||
|
b2eae85e79 | ||
|
feccaf477a | ||
|
aa040ab538 |
1 changed files with 2 additions and 9 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 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 {
|
||||
|
|
Loading…
Reference in a new issue