Fork me on GitHub
#conjure
<
2022-02-15
>
dave16:02:57

clojure-lsp even added clojuredocs examples to the completion results recently, so the results are even better than the coc-conjure ones were 😍

dharrigan16:02:02

and it works with your own docstrings too, for if no clojuredocs is found, then your own docstrings works. Tis pretty awesome-o!

👍 1
Chase16:02:37

Oh nice, I didn't realize we can drop coc-conjure too. I've been loving the new clojuredocs examples in the pop up too. Are you folks able to get that same functionality for cljs? What about java/js interop? I'm not complaining, I realize it's probably a huge ask for the lsp/conjure maintainers, just dreaming.

dharrigan16:02:48

java interop requires clojure-lsp (and clj-kondo) to be in sync

dharrigan16:02:52

there is a ticket for that

dharrigan16:02:15

I think it would piggyback off this

dharrigan16:02:22

as for cljs - don't use it, so cannot comment on that

Chase16:02:33

Oh nice. I think the Intellij + Cursive folks get such things but I just can't switch over.

borkdude16:02:56

for the java issue: the biggest issue is not the actual work, but what should happen. I have no idea.

dave16:02:27

clojure-lsp works very well for cljs, too. I get good completion results and linting via clj-kondo

Chase16:02:37

Ah, same for me. I was meaning the new clojuredocs examples for that. I don't think there is a cljs equivalent to draw off of anyways and the subtle differences between clj and cljs means you might not want them to use the clojuredocs examples.

Chase16:02:23

But the cljs cheatsheet does link back to clojuredocs

borkdude16:02:26

> but what should happen I mean, like a real user scenario. User wants to navigate to class or method X. Source code is not on the classpath usually. Then what should happen in neovim? It's one big question mark and so far nobody has made it more concrete. If it's not more concrete, nothing will happen.

Chase16:02:23

good point. What exactly happens in Intellij/Cursive? Cider/Emacs? Do they have more capability?

emilaasa17:02:56

I think IntelliJ downloads the sources and/or javadocs separately and then link you to them

Chase17:02:02

I can't find it now but I just saw a tweet or something from someone saying they made the switch to Intellij because the java/js interop help was much better. I didn't mean to derail the channel/thread, just something on the top of my mind when this convo came up.

borkdude17:02:23

If you're writing a lot of Java that might make sense. If you're doing JavaScript, VSCode is also pretty decent. You just don't get the integration between CLJS + JS navigation-wise in VSCode. I'm kind of primitive: I just look up the freaking javadocs in the browser.

☝️ 1
dave17:02:08

I'm the same way! 😄

dave17:02:20

It's interesting. With Java, I think there is often a lot more that you need to read in the docs, because there is a lot of ceremony, and you need to learn all about how the various classes work, and look at long code examples in the javadocs, etc. For that reason, I think it's more comfortable to read javadocs in the browser.

dave17:02:38

Compare that to Clojure libraries, which tend to be all pure functions with easily digestible docstrings.