snowflake/home/programs/editors/helix/default.nix

61 lines
1.4 KiB
Nix
Raw Normal View History

2024-05-27 12:07:19 -04:00
_: {
imports = [
2023-05-25 12:43:26 -04:00
./languages.nix
2023-11-27 07:24:45 -05:00
./themes/tokyonight.nix
2024-05-31 11:26:07 -04:00
./themes/onedark.nix
./themes/catppuccin_mocha.nix
];
2024-05-27 12:07:19 -04:00
2023-01-30 11:31:46 -05:00
programs.helix = {
2023-04-23 17:45:37 -04:00
enable = true;
2024-05-26 16:49:29 -04:00
defaultEditor = true;
2023-04-23 17:45:37 -04:00
settings = {
2024-05-31 11:26:07 -04:00
theme = "onedark";
2023-04-23 17:45:37 -04:00
editor = {
2023-05-25 12:43:26 -04:00
auto-save = true;
2023-01-30 11:31:46 -05:00
true-color = true;
color-modes = true;
cursorline = true;
2023-05-25 12:43:26 -04:00
completion-replace = true;
soft-wrap.enable = true;
idle-timeout = 1;
gutters = ["diff" "diagnostics" "line-numbers" "spacer"];
statusline = {
left = ["mode" "spinner"];
center = ["file-name"];
right = ["diagnostics" "selections" "position" "file-line-ending" "file-type" "version-control"];
separator = "|";
mode = {
2024-05-31 11:26:07 -04:00
normal = "NOR";
insert = "INS";
select = "SEL";
2023-05-25 12:43:26 -04:00
};
};
2023-01-30 11:31:46 -05:00
cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};
indent-guides = {
render = true;
rainbow = "dim";
2023-05-25 12:43:26 -04:00
character = "";
};
whitespace = {
characters = {
space = "·";
nbsp = "";
tab = "";
newline = "";
tabpad = "·";
};
};
lsp = {
display-messages = true;
display-inlay-hints = true;
2023-04-23 17:45:37 -04:00
};
};
2023-01-30 11:31:46 -05:00
};
};
}