diff options
| author | seth <[email protected]> | 2024-07-05 20:13:36 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-08-23 08:30:49 -0400 |
| commit | 31e5e715321a172cdbd1ba74220d51fae41a3df2 (patch) | |
| tree | e477da3b09e5faafb2fa99c135b0cb24e584f6be /treefmt.nix | |
| parent | 67fba5edad38f8a4651a6a782c7abdc696a464ff (diff) | |
nix: add dprintPlugins
Diffstat (limited to 'treefmt.nix')
| -rw-r--r-- | treefmt.nix | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/treefmt.nix b/treefmt.nix index a2c5477..b0cf63e 100644 --- a/treefmt.nix +++ b/treefmt.nix @@ -1,9 +1,43 @@ +{ pkgs, ... }: +let + dprintPlugins = pkgs.callPackage ./dprintPlugins { }; +in { projectRootFile = ".git/config"; programs = { + dprint = { + enable = true; + + settings = { + useTabs = true; + + plugins = map toString [ + dprintPlugins.json + dprintPlugins.markdown + dprintPlugins.typescript + dprintPlugins."g-plane/malva" + dprintPlugins."g-plane/markup_fmt" + ]; + + includes = [ "**/*.{css,json,md,ts,tsx}" ]; + + json = { + deno = true; + }; + + markdown = { }; + + typescript = { + deno = true; + }; + + malva = { }; + markup = { }; + }; + }; + deadnix.enable = true; - deno.enable = true; nixfmt.enable = true; statix.enable = true; }; |
