This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-09
Channels
- # alda (5)
- # aleph (10)
- # bangalore-clj (1)
- # beginners (168)
- # cider (68)
- # cljs-dev (263)
- # clojars (4)
- # clojure (66)
- # clojure-brasil (25)
- # clojure-china (1)
- # clojure-dusseldorf (1)
- # clojure-greece (4)
- # clojure-italy (3)
- # clojure-russia (4)
- # clojure-spec (12)
- # clojure-uk (16)
- # clojurescript (36)
- # community-development (12)
- # cursive (9)
- # data-science (1)
- # datascript (8)
- # datomic (20)
- # defnpodcast (6)
- # emacs (2)
- # figwheel (2)
- # fulcro (51)
- # graphql (62)
- # immutant (14)
- # keyboards (1)
- # lein-figwheel (10)
- # leiningen (5)
- # lumo (15)
- # off-topic (4)
- # onyx (3)
- # pedestal (4)
- # portkey (13)
- # protorepl (1)
- # re-frame (8)
- # reagent (2)
- # reitit (4)
- # shadow-cljs (71)
- # spacemacs (7)
- # specter (33)
- # sql (9)
- # unrepl (75)
- # vim (7)
https://github.com/tpope/vim-db I'm just surprised this exists by this author
Side note: I like the idea of just using one command (`:DB`) as an interface to a plugin. Think I’ll do that next time.
In vim with fireplace, doing :Eval on these three lines at once outputs what I expect:
(clojure.core/prn clojure.core/*ns*)
(in-ns 'foobar)
(clojure.core/prn clojure.core/*ns*)
;; returns
;; #object[clojure.lang.Namespace 0x27aae97b "user"]
;; #object[clojure.lang.Namespace 0x3bcd426c "foobar"]
However, evaluating them one by one with cpp
returns namespace user
on the third line, which indicates that vim/fireplace/nrepl(?) goes back to the original namespace after evaluating. How can I change namespace from vim and stay there?@niclasnilsson I think you can do :let b:fireplace_ns = 'some-ns'
Works fine, thanks @dominicm!