Fork me on GitHub
#vim
<
2021-01-07
>
salam21:01:54

i was under the impression that conjure supports socket repl. is it not the case?

nate22:01:50

an earlier version supported prepl, but the latest utilizes nrepl

salam02:01:25

hmm… that must be it. was there any reason for the switch from prepl to nrepl? nowadays, most other platforms (atom, intellij idea, and vs code) seem to have good-enough socket repl support…

Olical10:01:56

prepl isn't powerful enough for providing good tools, I was reinventing a bad nREPL. I don't have enough time to do that really, I'd rather spend time making things that work well and have good UX for people that need it, so I built in nREPL instead and ended up being able to delete 50% of my code while ending up with something more powerful and stable.

Olical10:01:43

And it wasn't socket REPL, it was specifically prepl because socket REPL doesn't distinguish between what's a result, stdout or stderr. I will add support for Clojure over prepl in Conjure again one day (probably) but it'll be extremely weak in comparison to what you can do with nREPL.

Olical10:01:05

I spent a good two years trying to be prepl only, I still don't regret giving up.

Olical10:01:39

I've written maaaany times on my blog and spoken in a few talks about how prepl is good for some simpler things, but for interactive editor tooling with lots of async evaluations, it's just not good enough.

salam16:01:31

i see. it all makes sense now. thank you very much for all the effort you put into Conjure! as a proud member of Clojurist Together, i hope you’re taking advantage of it and being compensated for your effort and time. 🙂

Olical15:01:56

I'm a member too 😄 I'm not benefiting from it right now but that's totally fine, I have my own personal wonderful independent sponsors on GitHub that fuel my coffee habit and Conjure work on the weekends 🙂 Actually I do benefit from CT indirectly from the work on CIDER etc, that helps me out MASSIVELY.

👍 3
nate22:01:53

seeing the https://clojurians.slack.com/archives/C06MAR553/p1610022945015300, I was wondering, is this magic available to us via any of the available vim clojure plugins?

tzzh10:01:01

it works with coc-nvim I have the following mapping (which I took from coc’s readme I think)

nmap <leader>qf  <Plug>(coc-fix-current)

Jason Paterson16:01:02

It also works as a code action in the nvim lsp