From 73af6ae9b5d8d56e5b147a79ecd5b46ef21c43f9 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Fri, 6 May 2022 16:19:23 -0600 Subject: [PATCH] docs: add pre-commit example --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9e4791..988f5b6 100644 --- a/README.md +++ b/README.md @@ -92,10 +92,24 @@ - ✔️ **Native** - We integrate with common code editors: + We integrate with common code editors and workflows: - [Alejandra extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=kamadorueda.alejandra) - - [Doom-emacs configuration](https://github.com/hlissner/doom-emacs): `(set-formatter! 'alejandra "alejandra --quiet" :modes '(nix-mode))` + - [Doom-emacs](https://github.com/hlissner/doom-emacs): + + ``` + (set-formatter! 'alejandra "alejandra --quiet" :modes '(nix-mode)) + ``` + + - [Pre-commit](https://pre-commit.com/): + + ```yaml + repos: + - repo: https://github.com/kamadorueda/alejandra + rev: dcaed43358af225dd2593b75537a01beb98563f0 + hooks: + - id: alejandra + ``` ## Getting started