snowflake/home/programs/helix/default.nix

58 lines
1.4 KiB
Nix
Raw Normal View History

2023-04-23 17:45:37 -04:00
{...}: {
imports = [
2023-05-25 12:43:26 -04:00
./languages.nix
2023-04-10 14:16:07 -04:00
./themes/catppuccin_mocha.nix
2023-11-27 07:24:45 -05:00
./themes/tokyonight.nix
];
2023-01-30 11:31:46 -05:00
programs.helix = {
2023-04-23 17:45:37 -04:00
enable = true;
settings = {
2023-11-24 04:23:43 -05:00
theme = "tokyonight";
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 = {
normal = "NORMAL";
insert = "INSERT";
select = "SELECT";
};
};
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
};
};
}