Skip to content

Provide ability to customise cljfmt code formatting #2907

@BrunoBonacci

Description

@BrunoBonacci

Describe the solution you'd like

It should be possible to provide a custom formatting configuration for cider-nrepl/cljfmt.
The cljfmt configuration format is described here:

https://github.com/weavejester/cljfmt#configuration

The desired solution should have a defcustom variable where the configuration can be provided.

Describe alternatives you've considered

A workaround to this solution is to use an after-save-hook as described here:

https://github.com/dzer6/cljfmt-graalvm

However, in this case, the two formatters (cider, external cljfmt) will keep fighting each other causing an awful user experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions