This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-27
Channels
- # beginners (35)
- # boot (111)
- # cider (12)
- # clojure (295)
- # clojure-android (2)
- # clojure-dev (12)
- # clojure-dusseldorf (9)
- # clojure-finland (1)
- # clojure-greece (7)
- # clojure-italy (24)
- # clojure-norway (1)
- # clojure-poland (7)
- # clojure-russia (14)
- # clojure-sg (1)
- # clojure-spec (29)
- # clojure-uk (25)
- # clojurebridge (1)
- # clojurescript (157)
- # clr (3)
- # cursive (3)
- # datomic (55)
- # docker (6)
- # hoplon (4)
- # juxt (11)
- # leiningen (13)
- # luminus (1)
- # lumo (3)
- # mount (1)
- # off-topic (47)
- # om (43)
- # onyx (35)
- # re-frame (33)
- # reactive (2)
- # reagent (4)
- # rum (3)
- # schema (5)
- # specter (5)
- # test-check (63)
- # vim (15)
- # yada (14)
Hi all, i wanted to ask about how do you guys connect to repl in vim. Currently i open vim and open lein repl
separately on the terminal and then i connect to the port mentioned on the repl
i want to make this quick , because its tedious to open repl and connect to it , everytime i open a project
#!/bin/bash -e
tmux attach -t repl && exit || echo 'no existing repl, creating a new one...'
if [ -e "project.clj" ]; then
tmux new -s repl "lein repl :start :port 9999"
else
tmux new -s repl "boot repl -p 9999"
fi
I use this script to launch a lein/boot repl in tmux, I’ll then disconnect from the session and open vim and connect to it using http://github.com/michaelbruce/ice.nvim
uhm, not doing anything explicit. I thought fireplace was reading .nrepl-port in local folder and connecting
when I run lein repl
then in that repl prompt (cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env))
it changes my namespace to cljs.user
. Then I run from within vim :Piggieback (cljs.repl.node/repl-env)
. I can run commands from within vim with fireplace i.e. cpp
, but when I use cpr
to load-file and switch to the prompt, how come I can't access any of my namespaces from the lein repl prompt?
(just trying to wrap my head around how these are all playing together)
I think you've created two separate repl environments there, and connected to them separately.
@dominicm yes that's what it sounds like, the trouble I'm having is that I'm making ajax requests, it doesn't sound like I'll see that response in vim when it resolves right?
just the result of the function that makes the request that I evaluate with cpp