1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-31 12:07:48 +00:00

Use recursiveUpdateMap

This commit is contained in:
RGBCube 2023-11-24 11:41:38 +03:00
parent 4b1253da45
commit f555a1128b
No known key found for this signature in database

View file

@ -1,4 +1,4 @@
{ lib, pkgs, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate
{ lib, ulib, pkgs, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate
(homeConfiguration [ "nixos" "root" ] {
programs.nushell.environmentVariables.EDITOR = "hx";
@ -37,7 +37,7 @@
settings.keys = lib.recursiveUpdate
(builtins.foldl' lib.recursiveUpdate {} (builtins.map (mode: { ${mode} = {
(ulib.recursiveUpdateMap (mode: { ${mode} = {
C-h = "move_prev_word_start";
C-l = "move_next_word_end";
C-k = "move_visual_line_up";
@ -47,11 +47,11 @@
C-right = "move_next_word_end";
C-up = "move_visual_line_up";
C-down = "move_visual_line_down";
}; }) [ "insert" "normal" "select" ]))
}; }) [ "insert" "normal" "select" ])
(builtins.foldl' lib.recursiveUpdate {} (builtins.map (mode: {
(ulib.recursiveUpdateMap (mode: {
${mode}.D = "extend_to_line_end";
}) [ "normal" "select" ]));
}) [ "normal" "select" ]);
};
})