We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bcc44c commit 0f566daCopy full SHA for 0f566da
CHANGELOG.md
@@ -2,6 +2,10 @@
2
3
## master (unreleased)
4
5
+### New features
6
+
7
+* Add a wrapper function for `zprint`, suitable for using with `nrepl.middleware.print`.
8
9
## 0.21.0 (2019-02-11)
10
11
### New features
src/cider/nrepl/pprint.clj
@@ -52,3 +52,16 @@
52
([value writer options]
53
(binding [*out* writer]
54
(@puget-printer value options))))
55
56
+(def ^:private zprint-printer
57
+ (delay
58
+ (do
59
+ (require 'zprint.core)
60
+ (resolve 'zprint.core/zprint))))
61
62
+(defn zprint-pprint
63
+ ([value writer]
64
+ (zprint-pprint value writer {}))
65
+ ([value writer options]
66
+ (binding [*out* writer]
67
+ (@zprint-printer value options))))
0 commit comments