Fork me on GitHub
#vim
<
2022-08-13
>
mars0i17:08:10

@pinelan, yes, it does do exactly what I want! I use that function all the time in vim-iced. It's actually what I had in mind when I wrote "IcedEvalTopForm" several posts up above. I don't know where I got the name "IcedEvalTopForm" from. I made it link to IcedEvalOuterTopList, in fact. But I was looking for the same behavior in Conjure, and walterl and lispclouds gave me two ways of getting that behavior in Conjure.

Martynas Maciulevičius20:08:59

Well if there is one shameless plug on Conjure then why not another. I implemented an integration of nREPL middleware for tests and I also implemented basic log parsing if this middleware doesn't need to be used (I think I'll split it into two plugins probably): https://github.com/Invertisment/conjure-clj-additions

👍 2
walterl21:08:27

I like the test output parsing and jumping you've got going on here. What I don't get is why you need the test running stuff. What does it provide over Conjure's Conjure*Run*Test*/`<LocalLeader>t`-prefixed commands?

Martynas Maciulevičius18:08:43

Conjure by default doesn't enable nREPL's test middleware. So if you want to use the Conjure's way then you can do it without. If you decide to use nREPL (which is actually built into conjure but isn't used) then you have to add a dependency (to your project's :dev profile for instance) and then you have to use different functions to run it.

Martynas Maciulevičius18:08:15

For nREPL middleware to work I wrote my own output mechanism that presents the test output (the diff part could be improved but I didn't yet know what it is so I didn't do it yet). I could probably add some visuals into README and I would really like to split the plugin into two (nREPL + non-nREPL one). This is example test run with nREPL's enabled middleware (the numbers 1. and 2. mean that you can jump to that test (first/second failing test) (this numbering only works for nREPL-based testing)):

Martynas Maciulevičius09:08:21

Also I have this message in the bottom when test pass/fail (again, only for nREPL):