Visitar URL original
Alejandra Plugin - dprint - Code Formatter
// plugins

Alejandra

Alejandra (Nix) wrapper 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@0.2.0"
  ]
}

All plugins

Official Plugins

Community Plugins

Wrapper Plugins

Everything Else