treefmt: add kdl formatter
This commit is contained in:
parent
5b77289525
commit
9c411eef35
1 changed files with 9 additions and 1 deletions
10
treefmt.nix
10
treefmt.nix
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
projectRootFile = "flake.nix";
|
||||
|
||||
|
|
@ -8,4 +8,12 @@
|
|||
programs.taplo.enable = true;
|
||||
programs.mdformat.enable = true;
|
||||
programs.shellcheck.enable = true;
|
||||
|
||||
settings.formatter = {
|
||||
"kdlfmt" = {
|
||||
command = "${pkgs.kdlfmt}/bin/kdlfmt";
|
||||
options = [ "format" ];
|
||||
includes = [ "*.kdl" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue