1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 19:47:47 +00:00

Add move Helix keybinds

This commit is contained in:
RGBCube 2023-11-11 00:04:44 +03:00
parent 8251c6901e
commit 13edd7edd9
No known key found for this signature in database

View file

@ -34,7 +34,23 @@
render.tab = "all";
};
settings.keys.normal.D = "extend_to_line_end";
settings.keys = lib.recursiveUpdate
(builtins.foldl' (x: y: lib.recursiveUpdate x y) {} (builtins.map (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" ]))
(builtins.foldl' (x: y: lib.recursiveUpdate x y) {} (builtins.map (mode: {
${mode}.D = "extend_to_line_end";
}) [ "normal" "select" ]));
};
})