Fork me on GitHub

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


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

👍 1

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.


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


there is a ticket for that


I think it would piggyback off this


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


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


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


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


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.


But the cljs cheatsheet does link back to clojuredocs


> 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.


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


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


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.


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

I'm the same way! 😄


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.


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