We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be nice to have the ability to configure the function used for formatting code (i.e cider-format-buffer).
cider-format-buffer
The relevant repl middleware function:
cider-nrepl/src/cider/nrepl/middleware/format.clj
Lines 12 to 16 in ce42411
We'd like to use https://github.com/kkinnear/zprint instead cljfmt.
For pretty printing, configuring the desired library is already supported:
cider-nrepl/src/cider/nrepl/middleware/pprint.clj
Lines 39 to 43 in f406dff
For now, and in case somebody else wants to use zprint with cider, we use the following approach to change reformat-string:
reformat-string
(alter-var-root #'cider.nrepl.middleware.format/reformat-string (constantly (delay #(zprint/zprint-file-str % "<stdin>")))
Is the ability to configure this properly and out of the box, like for pretty printing, something the project would be interested in?
The text was updated successfully, but these errors were encountered:
Yeah, certainly.
Ideally this should be done in a way that that doesn't make cider-nrepl depend directly on several libraries, though.
cider-nrepl
Sorry, something went wrong.
No branches or pull requests
It would be nice to have the ability to configure the function used for formatting code (i.e
cider-format-buffer
).The relevant repl middleware function:
cider-nrepl/src/cider/nrepl/middleware/format.clj
Lines 12 to 16 in ce42411
We'd like to use https://github.com/kkinnear/zprint instead cljfmt.
For pretty printing, configuring the desired library is already supported:
cider-nrepl/src/cider/nrepl/middleware/pprint.clj
Lines 39 to 43 in f406dff
For now, and in case somebody else wants to use zprint with cider, we use the following approach to change
reformat-string
:Is the ability to configure this properly and out of the box, like for pretty printing, something the project would be interested in?
The text was updated successfully, but these errors were encountered: