mirror of
https://github.com/RGBCube/ncc
synced 2025-07-31 12:07:48 +00:00
Simplify Helix config
This commit is contained in:
parent
8dbbe0f776
commit
cef55777d1
1 changed files with 4 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, ulib, pkgs, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate
|
||||
{ lib, pkgs, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate
|
||||
|
||||
(homeConfiguration [ "nixos" "root" ] {
|
||||
programs.nushell.environmentVariables.EDITOR = "hx";
|
||||
|
@ -35,23 +35,9 @@
|
|||
render.tab = "all";
|
||||
};
|
||||
|
||||
settings.keys = lib.recursiveUpdate
|
||||
|
||||
(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" ]);
|
||||
settings.keys = lib.genAttrs [ "normal" "select" ] (_: {
|
||||
D = "extend_to_line_end";
|
||||
});
|
||||
};
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue