This commit is contained in:
hand7s 2025-04-21 18:32:39 +03:00
commit b6cdc78668
210 changed files with 9929 additions and 0 deletions

63
hand7s/programs/helix.nix Normal file
View file

@ -0,0 +1,63 @@
{
pkgs,
...
}: {
programs = {
helix = {
enable = true;
defaultEditor = true;
extraPackages = with pkgs; [
nixd
nixfmt-rfc-style
];
settings = {
editor = {
line-number = "relative";
cursorline = true;
lsp = {
display-messages = true;
};
};
};
languages = {
language-servers = {
nixd = {
command = "${pkgs.nixd}/bin/nixd";
args = [
"--inlay-hints=true"
];
};
};
language = [
{
name = "nix";
comment-token = "#";
injection-regex = "nix";
indent = {
tab-width = 4;
unit = " ";
};
formatter = {
command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt-rfc-style";
args = [
"--indent=4"
];
};
file-types = [
"nix"
];
language-servers = [
"nixd"
];
}
];
};
};
};
}