snowflake/home/programs/helix/default.nix
notohh 502c926f9f
WIP: treewide: refactor to use flake-parts
first pass of my flake refactor using flake-parts
2024-04-16 21:02:33 -04:00

57 lines
1.4 KiB
Nix

{...}: {
imports = [
./languages.nix
./themes/catppuccin_mocha.nix
./themes/tokyonight.nix
];
programs.helix = {
enable = true;
settings = {
theme = "tokyonight";
editor = {
auto-save = true;
true-color = true;
color-modes = true;
cursorline = true;
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";
};
};
cursor-shape = {
insert = "bar";
normal = "block";
select = "underline";
};
indent-guides = {
render = true;
rainbow = "dim";
character = "";
};
whitespace = {
characters = {
space = "·";
nbsp = "";
tab = "";
newline = "";
tabpad = "·";
};
};
lsp = {
display-messages = true;
display-inlay-hints = true;
};
};
};
};
}