ark/users/modules/helix/default.nix
2023-03-24 15:10:42 +03:00

47 lines
1.0 KiB
Nix

{
inputs,
pkgs,
...
}: {
programs.helix = {
enable = true;
languages = [
{
name = "dockerfile";
roots = ["Dockerfile" "Containerfile"];
file-types = ["Dockerfile" "Containerfile" "dockerfile" "containerfile"];
}
{
name = "nix";
language-server = {command = "${inputs.nil.packages.${pkgs.system}.default}/bin/nil";};
}
{
name = "rust";
language-server = {command = "${pkgs.rust-analyzer}/bin/rust-analyzer";};
}
];
settings = {
editor = {
line-number = "relative";
middle-click-paste = false;
true-color = true;
whitespace.render = "all";
cursor-shape.insert = "bar";
lsp.display-messages = true;
indent-guides = {
render = true;
character = "|";
};
auto-pairs = {
"(" = ")";
"{" = "}";
"[" = "]";
"\"" = "\"";
"'" = "'";
"<" = ">";
};
};
};
};
}