flake/users/guanranwang/home-manager/modules/editor/helix.nix

40 lines
924 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 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";
};
};
};
}