Ardent
From NSIS Wiki
Jump to navigationJump to search
Description
An opinionated code formatter (aka "beautifier") for NSIS scripts. It's API-compatible with dent, which powers code formatting in VS Code and Atom/Pulsar Edit.
Installation
Cargo
cargo install ardent
Scoop
scoop bucket add nsis https://github.com/NSIS-Dev/scoop-nsis scoop install nsis/ardent
Homebrew
brew install idleberg/asahi/ardent
Nix
nix profile install github:idleberg/ardent
Mise
mise plugin install ardent https://github.com/idleberg/mise-ardent mise use ardent
Usage
Ardent provides two commands, format and check
Format
# Print formatted output to stdout ardent format installer.nsi # Edit files in-place ardent format --write src/**/*.nsi
See ardent format --help for available options.
Check
# Check only (reports drift) ardent check src/**/*.nsi # Check and auto-fix (still exits 1 if drift was found) ardent check --write src/**/*.nsi
See ardent check --help for available options.
Integrations
Ardent powers the code formatting of the NSIS language server, which powers editors such as Zed an Helix.