Fork me on GitHub
#vim
<
2021-11-04
>
zendevil.eth10:11:50

is there a vim plugin to jump to the definition of a function within the file and across namespaces?

ericdallo12:11:07

Did you check clojure-lsp or do you want something without LSP?

clojure-lsp 1
walterl13:11:21

Other options I've used (before LSP) include vim-fireplace and Conjure. I believe both of those will use your connected nREPL to find the definition you're looking for.

☝️ 2
rafaeldelboni16:11:46

I would love one that would get into java jar files haha

ericdallo16:11:33

Me and @U04V15CAJ already discussed how that could work but it's kind of in hammock time though. I think adding support for find definition of java classes would be a incredible start

borkdude17:11:49

The big questions: • Bytecode vs source parsing or both • Where will you redirect to when you only have bytecode to inspect?

1
ericdallo17:11:47

maybe we should start with the easiest, non byte code? not sure, I think cursive generate stubs

borkdude17:11:44

Yes, we could just start light weight using a doclet based thing like CIDER does perhaps.

ericdallo17:11:56

Hum. I don't know how that works on cider

borkdude17:11:23

No worries, it's pretty basic. clj-kondo has also always used this when indexing the Java std library

borkdude17:11:37

but we can extend this to other Java files too

borkdude17:11:51

without taking on other dependencies.