1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

docs: simplify readme

This commit is contained in:
Kevin Amado 2022-06-13 12:37:28 -06:00
parent a10a15984a
commit 2d540ec84b
4 changed files with 47 additions and 27 deletions

View file

@ -95,33 +95,9 @@
We integrate with common code editors and workflows:
- [Alejandra extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=kamadorueda.alejandra)
- [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: 1.4.0
hooks:
# Choose one of the following:
- id: alejandra # Requires Nix to be previously installed in the system
- id: alejandra-system # Requires Alejandra to be previously installed in the system
```
- [pre-commit-hooks.nix](https://github.com/cachix/pre-commit-hooks.nix)
```nix
pre-commit-check = pre-commit-hooks.lib.${system}.run {
hooks = {
alejandra.enable = true;
};
};
```
- [Doom-emacs](./integrations/doom-emacs/README.md)
- [Pre-commit](./integrations/pre-commit/README.md)
- [pre-commit-hooks.nix](./integrations/pre-commit-hooks-nix/README.md)
## Getting started