2024-08-28 13:14:34 +02:00
|
|
|
|
{ ... }: { config, lib, ... }: {
|
|
|
|
|
programs.helix = {
|
|
|
|
|
enable = true;
|
|
|
|
|
defaultEditor = true;
|
|
|
|
|
settings = {
|
|
|
|
|
editor.auto-pairs = {
|
|
|
|
|
"“" = "”";
|
|
|
|
|
"‘" = "’";
|
|
|
|
|
"„" = "“";
|
|
|
|
|
"‚" = "‘";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
editor.whitespace.render = {
|
|
|
|
|
nbsp = "all";
|
|
|
|
|
nnbsp = "all";
|
|
|
|
|
tab = "all";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
editor.whitespace.characters = {
|
|
|
|
|
nbsp = "␣";
|
|
|
|
|
nnbsp = "⍽";
|
|
|
|
|
tab = "»";
|
|
|
|
|
tabpad = "·";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
keys.normal = {
|
|
|
|
|
minus = "command_mode";
|
|
|
|
|
|
|
|
|
|
r = "move_char_left";
|
|
|
|
|
n = "move_visual_line_down";
|
|
|
|
|
t = "move_visual_line_up";
|
|
|
|
|
h = "move_char_right";
|
|
|
|
|
|
|
|
|
|
p = "move_prev_word_start";
|
|
|
|
|
w = "move_next_word_start";
|
|
|
|
|
l = "move_next_word_end";
|
|
|
|
|
P = "move_prev_long_word_start";
|
|
|
|
|
W = "move_next_long_word_start";
|
|
|
|
|
L = "move_next_long_word_end";
|
|
|
|
|
|
|
|
|
|
z = "replace";
|
2024-08-30 17:35:44 +02:00
|
|
|
|
Z = "replace_with_yanked";
|
2024-08-28 13:14:34 +02:00
|
|
|
|
|
|
|
|
|
s = "paste_after";
|
|
|
|
|
S = "paste_before";
|
|
|
|
|
|
|
|
|
|
x = "extend_line_below";
|
|
|
|
|
X = "extend_to_line_bounds";
|
2024-08-30 17:35:44 +02:00
|
|
|
|
A-X = "shrink_to_line_bounds";
|
2024-08-28 13:14:34 +02:00
|
|
|
|
|
|
|
|
|
e = "change_selection";
|
2024-08-30 17:35:44 +02:00
|
|
|
|
A-e = "change_selection_noyank";
|
2024-08-28 13:14:34 +02:00
|
|
|
|
|
|
|
|
|
N = "join_selections";
|
2024-08-30 17:35:44 +02:00
|
|
|
|
A-N = "join_selections_space";
|
2024-08-28 13:14:34 +02:00
|
|
|
|
|
2024-08-31 10:43:02 +02:00
|
|
|
|
";" = "search_next";
|
|
|
|
|
":" = "search_prev";
|
2024-08-28 13:14:34 +02:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|