// plugins
Nix Plugin
Wrapper plugin that formats Nix code via nixfmt-rs, a Rust port of nixfmt.
Formats .nix files.
Install and Setup
In your project's directory with a dprint.json file, run:
dprint add nix
This will update your config file to have an entry for the plugin. Then optionally specify a "nix" property to add configuration:
{
"nix": {
// nix config goes here
},
"plugins": [
"npm:@dprint/nix@x.x.x"
]
}
Configuration
See Configuration.