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

34 lines
820 B
Nix
Raw Normal View History

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