Skip to content
New issue

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

Customise pprint function #406

Open
SevereOverfl0w opened this issue Nov 25, 2022 · 1 comment
Open

Customise pprint function #406

SevereOverfl0w opened this issue Nov 25, 2022 · 1 comment

Comments

@SevereOverfl0w
Copy link
Contributor

Currently it's hardcoded to puget, it would be nice to customise it (e.g. for zprint)

@frenchy64
Copy link
Contributor

frenchy64 commented Oct 19, 2023

I think it's fipp now. I found more discussion here: cb124b8

fipp is causing me minor issues, also would be nice to have the option to switch to something more extensible (clojure.pprint).

AFAIU the issue is how to abstract over the following lines via configuration:

let a:msg['nrepl.middleware.print/print'] = 'cider.nrepl.pprint/fipp-pprint'
let a:msg['nrepl.middleware.print/options'] = {}
if a:width > 0
let a:msg['nrepl.middleware.print/options'].width = a:width
endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants