// plugins
Alejandra Plugin
Wrapper plugin that formats Nix code via Alejandra. It runs Alejandra's own code compiled to Wasm, so it formats like the Alejandra CLI.
Formats .nix files. It matches the same files as the Nix plugin, so use one or the other.
Install and Setup
In your project's directory with a dprint.json file, run:
dprint add alejandra
This will update your config file to have an entry for the plugin. Then optionally specify an "alejandra" property to add configuration:
{
"alejandra": {
// Alejandra's config goes here
},
"plugins": [
"npm:@dprint/alejandra@x.x.x"
]
}
Configuration
See Configuration.