Feature 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 .edn file extensions
- Use the
cljfmt command
- Only be enabled when the
cljfmt command is available
- Follow the same pattern as other formatters (
gofmt, rustfmt, and etc.)
Implementation
- Add
cljfmt formatter definition in packages/opencode/src/format/formatter.ts
- Update formatter documentation in
packages/web/src/content/docs/formatters.mdx
Feature hasn't been suggested before.
Describe the enhancement you want to request
Description
Add support for the
cljfmtformatter to automatically format Clojure files (.clj,.cljs,.cljc, and.edn) when they are edited in OpenCode.Requirements
The formatter should:
.clj,.cljs,.cljc, and.ednfile extensionscljfmtcommandcljfmtcommand is availablegofmt,rustfmt, and etc.)Implementation
cljfmtformatter definition inpackages/opencode/src/format/formatter.tspackages/web/src/content/docs/formatters.mdx