1
0
Fork 0
nix-homemanager-laptop/languages/toml.nix
2025-07-10 04:35:04 -05:00

25 lines
500 B
Nix

{ pkgs, treefmt }:
{
helix = {
language = {
name = "toml";
language-servers = [
"taplo"
"harper-ls"
"typos"
];
formatter = {
command = "${treefmt}/bin/treefmt";
args = [
"--stdin"
".toml"
"--quiet"
];
};
auto-format = true;
};
language-server.taplo.command = "${pkgs.taplo}/bin/taplo";
};
treefmt.programs.taplo.enable = true;
pre-commit.check-toml.enable = true;
}