[PR #6380] feat(format): add nixfmt formatter for Nix files #11873

Closed
opened 2026-02-16 18:16:48 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6380

State: closed
Merged: Yes


Summary

Add nixfmt formatter support for .nix files.

Changes

  • Add nixfmt to built-in formatters in packages/opencode/src/format/formatter.ts
  • Follows existing formatter pattern (like gofmt, gleam, shfmt)
  • Enabled when nixfmt binary is available in PATH

Closes #6379

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6380 **State:** closed **Merged:** Yes --- ## Summary Add `nixfmt` formatter support for `.nix` files. ## Changes - Add `nixfmt` to built-in formatters in `packages/opencode/src/format/formatter.ts` - Follows existing formatter pattern (like `gofmt`, `gleam`, `shfmt`) - Enabled when `nixfmt` binary is available in PATH Closes #6379
yindo added the pull-request label 2026-02-16 18:16:48 -05:00
yindo closed this issue 2026-02-16 18:16:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11873