25 lines
500 B
Nix
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;
|
|
}
|