2023-11-23 06:05:54 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2023-11-05 09:21:37 +00:00
|
|
|
programs.helix = {
|
|
|
|
enable = true;
|
2024-02-29 19:17:14 +00:00
|
|
|
# defaultEditor = true;
|
2023-11-05 09:21:37 +00:00
|
|
|
settings = {
|
2023-11-23 06:05:54 +00:00
|
|
|
theme =
|
|
|
|
lib.mkIf (config.myFlake.home-manager.colorScheme == "tokyonight")
|
|
|
|
"tokyonight";
|
2023-11-05 09:21:37 +00:00
|
|
|
editor = {
|
|
|
|
cursor-shape = {
|
|
|
|
insert = "bar";
|
|
|
|
normal = "block";
|
|
|
|
select = "underline";
|
|
|
|
};
|
2023-11-07 05:00:26 +00:00
|
|
|
statusline.mode = {
|
|
|
|
normal = "--NORMAL--";
|
|
|
|
insert = "--INSERT--";
|
|
|
|
select = "--SELECT--";
|
2023-11-05 09:21:37 +00:00
|
|
|
};
|
2023-11-07 05:00:26 +00:00
|
|
|
soft-wrap.enable = true;
|
2023-11-05 09:21:37 +00:00
|
|
|
indent-guides.render = true;
|
|
|
|
file-picker.hidden = false;
|
|
|
|
};
|
2024-02-22 17:03:13 +00:00
|
|
|
# i still use these keybinds sometimes, even its hard to reach
|
2023-11-05 09:21:37 +00:00
|
|
|
keys.insert = {
|
|
|
|
C-left = "move_prev_word_start";
|
|
|
|
C-right = "move_next_word_end";
|
|
|
|
};
|
|
|
|
keys.normal = {
|
|
|
|
C-left = "move_prev_word_start";
|
|
|
|
C-right = "move_next_word_end";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|