From f8208711bb80d2c5088fa6a3816b6de8fb7d4412 Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Sun, 19 May 2024 12:42:59 +0000 Subject: [PATCH] docs: update contributing/formatting/tools --- contributing/formatting/tools.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/contributing/formatting/tools.md b/contributing/formatting/tools.md index 4263e68..f34487f 100644 --- a/contributing/formatting/tools.md +++ b/contributing/formatting/tools.md @@ -2,7 +2,7 @@ title: Formatting tools description: published: true -date: 2024-05-19T12:41:51.196Z +date: 2024-05-19T12:42:57.904Z tags: editor: markdown dateCreated: 2024-05-19T12:41:51.196Z @@ -14,6 +14,10 @@ Please use the standard formatting tools for your language, and obey them over a > You should not configure your formatter, you should instead use its default options {.is-info} +## Using treefmt + +// TODO + ## Formatting manually If you'd prefer to avoid treefmt, you can set up the language formatters manually. @@ -33,11 +37,11 @@ If you're using flakes, you can set your nix formatter in your `flake.nix` outpu {.is-info} ```nix { - inputs = { - nixpkgs.url = "github:nixos/nixpkgs"; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; }; - outputs = { nixpkgs, ... }: { + outputs = { nixpkgs, ... }: { formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style; }; }