Common/helix: manually write languages.toml and configure nil for formatting

This commit is contained in:
Toast 2024-02-09 14:12:43 +01:00
parent 80eaacd3a3
commit b27ddf6aad

View file

@ -22,12 +22,17 @@
indent-guides.render = true;
};
};
languages = [
{
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"
'';
};
};
}