flake/home/applications/helix/default.nix
2024-01-17 19:53:00 +08:00

39 lines
924 B
Nix

{
config,
lib,
...
}: {
programs.helix = {
enable = true;
defaultEditor = true;
settings = {
theme =
lib.mkIf (config.myFlake.home-manager.colorScheme == "tokyonight")
"tokyonight";
editor = {
cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};
statusline.mode = {
normal = "--NORMAL--";
insert = "--INSERT--";
select = "--SELECT--";
};
soft-wrap.enable = true;
indent-guides.render = true;
file-picker.hidden = false;
};
# i still use these keybinds somethimes, even its hard to reach
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";
};
};
};
}