1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-08-01 12:37:46 +00:00

Simplify Helix config

This commit is contained in:
RGBCube 2023-11-28 11:04:53 +03:00
parent 8dbbe0f776
commit cef55777d1
No known key found for this signature in database

View file

@ -1,4 +1,4 @@
{ lib, ulib, pkgs, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate { lib, pkgs, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate
(homeConfiguration [ "nixos" "root" ] { (homeConfiguration [ "nixos" "root" ] {
programs.nushell.environmentVariables.EDITOR = "hx"; programs.nushell.environmentVariables.EDITOR = "hx";
@ -35,23 +35,9 @@
render.tab = "all"; render.tab = "all";
}; };
settings.keys = lib.recursiveUpdate settings.keys = lib.genAttrs [ "normal" "select" ] (_: {
D = "extend_to_line_end";
(ulib.recursiveUpdateMap (mode: { ${mode} = { });
C-h = "move_prev_word_start";
C-l = "move_next_word_end";
C-k = "move_visual_line_up";
C-j = "move_visual_line_down";
C-left = "move_prev_word_start";
C-right = "move_next_word_end";
C-up = "move_visual_line_up";
C-down = "move_visual_line_down";
}; }) [ "insert" "normal" "select" ])
(ulib.recursiveUpdateMap (mode: {
${mode}.D = "extend_to_line_end";
}) [ "normal" "select" ]);
}; };
}) })