-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelix.nix
54 lines (52 loc) · 1.41 KB
/
helix.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{pkgs, ...}: {
programs.helix = {
enable = true;
settings = {
theme = "dracula";
editor = {
lsp.display-messages = true;
};
keys.normal = {
"h" = "move_char_left";
"n" = "move_char_right";
"c" = "move_visual_line_up";
"t" = "move_visual_line_down";
"g" = "move_prev_word_start";
"G" = "move_prev_long_word_start";
"r" = "move_next_word_end";
"R" = "move_next_long_word_end";
"k" = "change_selection";
"j" = "replace";
"J" = "replace_with_yanked";
"l" = "goto_line";
"e" = "command_mode";
};
keys.select = {
"h" = "extend_char_left";
"n" = "extend_char_right";
"c" = "extend_visual_line_up";
"t" = "extend_visual_line_down";
"g" = "extend_prev_word_start";
"G" = "extend_prev_long_word_start";
"r" = "extend_next_word_end";
"R" = "extend_next_long_word_end";
"k" = "change_selection";
"j" = "replace";
"J" = "replace_with_yanked";
"l" = "goto_line";
"e" = "command_mode";
};
keys.insert = {
"menu" = "normal_mode";
};
};
languages.language = [
{
name = "nix";
auto-format = false;
formatter.command = "${pkgs.alejandra}";
}
];
};
home.file."~/.config/helix/themes/dracula.toml".source = ./dracula.toml;
}