56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{...}: {
|
|
imports = [
|
|
./languages.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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|