flake/users/guanranwang/home-manager/resources/editor/helix.nix
2023-11-05 17:21:37 +08:00

34 lines
820 B
Nix

{...}: {
programs.helix = {
enable = true;
defaultEditor = true;
settings = {
theme = "tokyonight";
editor = {
cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};
statusline = {
mode = {
normal = "--NORMAL--";
insert = "--INSERT--";
select = "--SELECT--";
};
};
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";
};
};
};
}