-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Closed
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussiondocs
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Description
Add support for the cljfmt formatter to automatically format Clojure files (.clj, .cljs, .cljc, and .edn) when they are edited in OpenCode.
Requirements
The formatter should:
- Support
.clj,.cljs,.cljc, and.ednfile extensions - Use the
cljfmtcommand - Only be enabled when the
cljfmtcommand is available - Follow the same pattern as other formatters (
gofmt,rustfmt, and etc.)
Implementation
- Add
cljfmtformatter definition inpackages/opencode/src/format/formatter.ts - Update formatter documentation in
packages/web/src/content/docs/formatters.mdx
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussiondocs