1
0
Fork 0
nix-homemanager-laptop/base/languages/toml/default.nix

32 lines
758 B
Nix

{ ... }:
{
imports = [ ../en-us ];
perSystem =
{ config, pkgs, ... }:
{
helix.languages = {
language = [
{
name = "toml";
language-servers = [
"taplo"
"harper-ls"
"typos"
];
formatter = {
command = "${config.treefmt.build.wrapper}/bin/treefmt";
args = [
"--stdin"
".toml"
"--quiet"
];
};
auto-format = true;
}
];
language-server.taplo.command = "${pkgs.taplo}/bin/taplo";
};
treefmt.programs.taplo.enable = true;
pre-commit.settings.hooks.check-toml.enable = true;
};
}