mirror of
https://github.com/RGBCube/ncc
synced 2025-08-01 12:37:46 +00:00
Use recursiveUpdateMap
This commit is contained in:
parent
4b1253da45
commit
f555a1128b
1 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate
|
{ lib, ulib, pkgs, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate
|
||||||
|
|
||||||
(homeConfiguration [ "nixos" "root" ] {
|
(homeConfiguration [ "nixos" "root" ] {
|
||||||
programs.nushell.environmentVariables.EDITOR = "hx";
|
programs.nushell.environmentVariables.EDITOR = "hx";
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
settings.keys = lib.recursiveUpdate
|
settings.keys = lib.recursiveUpdate
|
||||||
|
|
||||||
(builtins.foldl' lib.recursiveUpdate {} (builtins.map (mode: { ${mode} = {
|
(ulib.recursiveUpdateMap (mode: { ${mode} = {
|
||||||
C-h = "move_prev_word_start";
|
C-h = "move_prev_word_start";
|
||||||
C-l = "move_next_word_end";
|
C-l = "move_next_word_end";
|
||||||
C-k = "move_visual_line_up";
|
C-k = "move_visual_line_up";
|
||||||
|
@ -47,11 +47,11 @@
|
||||||
C-right = "move_next_word_end";
|
C-right = "move_next_word_end";
|
||||||
C-up = "move_visual_line_up";
|
C-up = "move_visual_line_up";
|
||||||
C-down = "move_visual_line_down";
|
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";
|
${mode}.D = "extend_to_line_end";
|
||||||
}) [ "normal" "select" ]));
|
}) [ "normal" "select" ]);
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue