flake/home/applications/helix/default.nix

40 lines
923 B
Nix
Raw Normal View History

{
config,
lib,
...
}: {
2023-11-05 09:21:37 +00:00
programs.helix = {
enable = true;
defaultEditor = true;
settings = {
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;
};
# 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";
};
};
};
}