From f555a1128b2f0b7e9f54e9a3542f289f3e9646ab Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 24 Nov 2023 11:41:38 +0300 Subject: [PATCH] Use recursiveUpdateMap --- machines/enka/helix/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/machines/enka/helix/default.nix b/machines/enka/helix/default.nix index 1fadb8f..153ba5d 100644 --- a/machines/enka/helix/default.nix +++ b/machines/enka/helix/default.nix @@ -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" ]); }; })