helix: steal fuf's conftig to try it

This commit is contained in:
Charlie Root 2024-09-01 22:10:02 +02:00
commit e5e7e34ef2
3 changed files with 154 additions and 9 deletions

View file

@ -9,12 +9,13 @@
inherit (config.modules.other.system) username;
inherit (lib) mkIf getExe makeBinPath;
in {
imports = [./languages.nix];
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.helix = {
enable = true;
# thanks fufexan, this is great!
package = inputs'.helix.packages.default.helix.overrideAttrs (previousAttrs: {
package = inputs'.helix.packages.default.overrideAttrs (previousAttrs: {
makeWrapperArgs = with pkgs;
previousAttrs.makeWrapperArgs
or []
@ -60,14 +61,6 @@ in {
A-f = ":format";
};
};
languages = {
language-server = {
nil = {
command = getExe pkgs.nil;
config.nil.formatting.command = ["${getExe pkgs.alejandra}" "-q"];
};
};
};
};
};
};