Fork me on GitHub
#conjure
<
2021-05-06
>
harryvederci07:05:02

Do you guys know if there is a way to find all usages of a function, either with Conjure or in some other way? So when the cursor is on a function name, you could quickly see (/ jump to) all places in your code base that refer to that function. (kinda like the opposite of <localleader>gd in Conjure)

harryvederci06:05:03

I ended up using Neovim 0.5 its built-in LSP, similar to Chris@Machine his https://www.chrisatmachine.com/Neovim/27-native-lsp/ (video version https://www.youtube.com/watch?v=NXysez2vS4Q), but using Aniseed for everything. Seems pretty sweet so far!

Sigve09:05:38

Cool. Would be interested in seeing your config if you have it online somewhere

3
harryvederci10:05:57

@sigve.nordgaard Maybe I can share it tonight (for me, in ~8 hours), bit busy at the moment and my dotfiles aren't public. Remind me in a private message if I don't respond here myself, in case I forget.

Sigve11:05:55

No worries, i don't need it for anything specific right now:)

Sigve07:05:12

@mail089 i use clojure-lsp for this exact use case via coc (`coc-references`), although any LSP client will probably do

👍 3
dharrigan07:05:00

another thing I do, which only works in a local file, is to use vim vista, to find all function references and jump to (it uses universal ctags underneath)

dharrigan07:05:15

can be handy if your namespace is big 🙂

harryvederci08:05:17

Thanks! @dharrigan I had some issues with ctags in the past, but I’ll keep it in mind! @sigve.nordgaard I’ll try clojure-lsp with coc-references, as I’m already using coc :thumbsup:

Kailash K20:05:35

👋 , I’m trying to run my tests with <localleader>tn but that doesn’t seem to help; am I missing something obvious?

emilaasa20:05:16

What sort of tests do you have?

emilaasa20:05:14

It works for me with: • repl connection • clojure.test

Kailash K20:05:24

clojure.test

Sigve13:05:56

Are you sure the buffer is loaded?

Olical20:05:48

Thanks for offering help, all 🙂 if you can provide a little more context such as what Sigve mentioned I'll try my best to help you work it out. Also if you're using Clojure or ClojureScript will help narrow things down, potentially.

GitHub20:05:58

[Olical/conjure] Issue opened by semperos

✔️ 3