Fork me on GitHub
#vim
<
2020-11-20
>
zyxmn12:11:22

hey folks, what do I need to be able to navigate to java method definitions when using interop

zyxmn12:11:48

or rather how do you currently navigate to java source code

hugo13:11:59

You can navigate to clojure source because the clojure source is on the classpath but afaik you normally just have .class files on your classpath and not java source.

zyxmn13:11:25

Yes , this is possible in intellij since it pulls in the java source code aswell apparently so was wondering what vim folks do

nbardiuk14:11:34

I've just checked that vim-iced can navigate and show source of java class. And I've used this approach to fetch missing sources using maven https://stackoverflow.com/a/14395560/187261

zyxmn21:11:53

Oh sweet 🤙

noisesmith15:11:57

@zyxmndaleyjes I am sure this is not what you had in mind, but I tend to use the javadoc function, which opens the API documentation in my browser

zyxmn21:11:15

Yea I came across that . It's pretty useful

noisesmith16:11:24

(in a default repl, javadoc is bound to clojure.java.javadoc/javadoc)

dominicm17:11:38

@zyxmndaleyjes there's a lein plugin that'll add the java sources to the classpath, I used it for a while a long time ago and it worked perfectly wwith fireplace

zyxmn21:11:47

Perfect , I'll have a looksie