conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
mozinator2 2020-12-09T14:02:13.253300Z

Is it possible to automatically pretty print the output of an conjure evaluation ?

Olical 2020-12-09T14:07:32.253600Z

All output is already run through clojure.pprint as it's displayed. This won't kick in until the input is past a certain size though I think.

mozinator2 2020-12-09T14:07:48.254Z

At the moment I am doing this but it's not optimal

(clojure.pprint/pprint data (io/writer "data.edn"))

mozinator2 2020-12-09T14:08:28.254100Z

Also when using babashka ? Maybe that's my problem

Olical 2020-12-09T14:08:45.254300Z

Ah no, babashka doesn't support the arguments I provide at the moment

Olical 2020-12-09T14:08:47.254500Z

I think

Olical 2020-12-09T14:08:58.254700Z

The nREPL implementation doesn't listen to the formatting key I send

Olical 2020-12-09T14:10:06.254900Z

This will require some other solution but I'm not sure what right now. Might be worth opening an issue on the repo so it gets some visibility and discussion :thinking_face: not sure if bb has any support for formatting output in it's nREPL support? If not it'll be a bit tricky to get it right for all cases, ideally bb would provide a key I can send in eval messages that would format the output.

👍 1
Olical 2020-12-09T14:10:15.255100Z

So maybe this'll require a babashka pr then a Conjure change

mozinator2 2020-12-09T14:13:36.255300Z

Maybe it's also totally something that I am doing wrong. Maybe not having the right middlewares for nrepl active.

mozinator2 2020-12-09T14:14:53.256400Z

Another question I have. And probably also has been answered a lot of times. How can I make the size of the evaluation popup bigger ?

Olical 2020-12-09T14:16:03.256500Z

That'll be the hud#width and hud#height options :helpgrep conjure#log#hud#width

mozinator2 2020-12-09T14:17:04.256700Z

great! thanks!

mozinator2 2020-12-09T14:18:56.257900Z

So far I have been very happy developing Clojure/Babashka using Vim + Conjure, thanks @olical ! And I really love :ConjureSchool

👍 1
❤️ 1
nate 2020-12-09T14:58:00.259Z

Hm, bb recently got real pprint (was using fipp or something else before), so it's likely this is possible.