ark/users/modules/helix/default.nix
2023-08-23 14:06:38 +03:00

56 lines
1.3 KiB
Nix

{
inputs,
pkgs,
...
}: {
stylix.targets.helix.enable = false;
programs.helix = {
enable = true;
languages.language = [
{
name = "dockerfile";
roots = ["Dockerfile" "Containerfile"];
file-types = ["Dockerfile" "Containerfile" "dockerfile" "containerfile"];
}
{
name = "nix";
language-servers = ["nixd-lsp"];
}
];
languages.language-server = {
nixd-lsp = {command = "${inputs.nixd.packages.${pkgs.system}.default}/bin/nixd";};
};
settings = {
theme = "ferra";
editor = {
soft-wrap.enable = true;
line-number = "relative";
middle-click-paste = false;
true-color = true;
whitespace.render = "all";
cursor-shape.insert = "block";
lsp = {
display-messages = true;
display-inlay-hints = false;
};
indent-guides = {
render = true;
};
auto-pairs = {
"(" = ")";
"{" = "}";
"[" = "]";
"\"" = "\"";
"'" = "'";
"<" = ">";
};
statusline = {
left = ["mode" "spinner"];
center = ["file-name" "file-encoding" "version-control"];
right = ["diagnostics" "selections"];
};
};
};
};
}