Common/helix: use home-manager languages option

This commit is contained in:
Toast 2024-04-17 11:27:35 +02:00
parent 384ecd5712
commit 5d644f0959

View file

@ -25,17 +25,14 @@
indent-guides.render = true;
};
};
languages = {
language = [
{
name = "nix";
formatter.command = "nixpkgs-fmt";
}
];
};
# The builtin languages options have issues
# https://github.com/nix-community/home-manager/issues/3299
xdg.configFile."helixLanguages" = {
target = "helix/languages.toml";
text = ''
[language-server.nil]
config.nil.formatting.command = [ "nixpkgs-fmt" ]
[[language]]
name = "nix"
'';
};
};
}