Fork me on GitHub
#spacemacs
<
2016-10-30
>
gowder18:10:25

Soooo.... I assume someone on here has figured out the right tweaks to/on top of the clojure layer to hook into figwheel? :-)

ag19:10:42

@gowder what exactly are you trying to do? Do you want to run figwheel when “jacking-in”? Do you want two repls - CLJ and CLJS?

gowder19:10:08

@ag: I'd be happy with just an option to jack into a running figwheel repl as an alternative to the normal clj repl

ag19:10:55

@gowder you can you cider-connect to connect to a running repl, but you’d lose some clj-refactor functionality

ag19:10:55

however if you have a script (similar to a sass-script) described in figwheel’s wiki, you can do something like this:

ag19:10:47

((nil . ((cider-lein-parameters . "do clean, repl :headless")
         (cider-cljs-lein-repl . "(start) (repl)"))))
if you put this into dir-locals.el of your project - whenever you run cider-jack-in-clojurescript it will run the second thing and you’d have 2 independent repl bufers - one for Clojure. another for Clojurescript

gowder20:10:18

Ooh nice. Thanks @ag !

zane22:10:46

Is there a way to get cider nREPL buffers to be in the current perspective on launch?