Olical / conjure

Interactive evaluation for Neovim (Clojure, Fennel, Janet, Racket, Hy, MIT Scheme, Guile, Python and more!)
https://conjure.oli.me.uk
The Unlicense
1.76k stars 109 forks source link

Add refactor middleware support for Clojure #139

Open Olical opened 3 years ago

Olical commented 3 years ago

Cider supports it via clj-refactor.el [1], which uses refactor-nrepl middleware [2]

[1] https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-find-usages

[2] https://github.com/clojure-emacs/refactor-nrepl

I'm thinking this could be an external plugin since it's optional and can be quite nuanced.

Saying that clj-refactor is a thing, there are existing plugins already! They're all fireplace based, if the authors are open to Conjure support then we could just add support.

Another option is to fork those plugins and make Conjure specific versions.

One final option which could be really fun: Add Fireplace compatible shim commands and functions that these plugins rely on, so Conjure could pretend to be fireplace then we get support of all fireplace plugins by default!

This last idea could be a separate plugin since it's quite a funky idea that's mostly a stopgap until there's more Conjure based 3rd party plugins out there. If anyone wants to hack that together, I'd be your friend forever and ever :slightly_smiling_face: (I'll do that anyway, but I'll buy you a beer if we ever meet)

Olical commented 3 years ago

If we have that fireplace -> conjure bridge shim thing, it'd also mean things like vim-clojure-highlight would work automatically too :eyes: