ark/users/modules/helix/default.nix

56 lines
1.3 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;
2023-08-23 14:06:38 +03:00
languages.language = [
2022-06-29 03:31:55 +03:00
{
name = "dockerfile";
roots = ["Dockerfile" "Containerfile"];
file-types = ["Dockerfile" "Containerfile" "dockerfile" "containerfile"];
}
{
name = "nix";
2023-08-23 14:06:38 +03:00
language-servers = ["nixd-lsp"];
2022-06-29 03:31:55 +03:00
}
];
2023-08-23 14:06:38 +03:00
languages.language-server = {
nixd-lsp = {command = "${inputs.nixd.packages.${pkgs.system}.default}/bin/nixd";};
};
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
};
};
};
}