Fork me on GitHub
#vim
<
2022-12-28
>
Dumch12:12:15

Hey, guys! What do you use to select and format Clojure code? I'd like to prettify the REPL-output of long maps in particular (I'm aware of clojure.pprint/pprint, but I don't want to rewrite the code every time).

practicalli-johnny18:12:50

For larger data or highly nested data I would use an inspector, e.g https://github.com/djblue/portal To avoid wrapping code in an explicit tap> call, then all evaluation can be sent to portal via nrepl https://github.com/djblue/portal

Dumch20:12:34

Thank you for the hint! I think I will use a tool for the task, but I am already a fan of flow-storm 🙂

Nundrum18:01:47

Something I do a lot is use fireplace's C!! to eval a form and put the results in the buffer.