ark/users/modules/helix/default.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2022-06-29 03:31:55 +03:00
{
inputs,
pkgs,
...
}: {
2023-05-04 03:13:26 +03:00
stylix.targets.helix.enable = false;
2022-06-29 03:31:55 +03:00
programs.helix = {
enable = true;
languages = [
{
name = "dockerfile";
roots = ["Dockerfile" "Containerfile"];
file-types = ["Dockerfile" "Containerfile" "dockerfile" "containerfile"];
}
{
name = "nix";
2022-08-14 04:09:46 +03:00
language-server = {command = "${inputs.nil.packages.${pkgs.system}.default}/bin/nil";};
2022-06-29 03:31:55 +03:00
}
];
settings = {
2023-05-04 03:13:26 +03:00
theme = "ferra";
2022-06-29 03:31:55 +03:00
editor = {
2023-04-11 07:19:51 +03:00
soft-wrap.enable = true;
2022-06-29 03:31:55 +03:00
line-number = "relative";
middle-click-paste = false;
true-color = true;
whitespace.render = "all";
2023-04-11 07:19:51 +03:00
cursor-shape.insert = "block";
lsp = {
display-messages = true;
2023-05-04 03:13:26 +03:00
display-inlay-hints = false;
2023-04-11 07:19:51 +03:00
};
2022-06-29 03:31:55 +03:00
indent-guides = {
render = true;
};
auto-pairs = {
"(" = ")";
"{" = "}";
"[" = "]";
"\"" = "\"";
"'" = "'";
"<" = ">";
};
2023-04-11 07:19:51 +03:00
statusline = {
left = ["mode" "spinner"];
2023-04-11 07:49:46 +03:00
center = ["file-name" "file-encoding" "version-control"];
2023-04-11 07:19:51 +03:00
right = ["diagnostics" "selections"];
};
2022-06-29 03:31:55 +03:00
};
};
};
}