This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-22
Channels
- # announcements (21)
- # aws (7)
- # beginners (105)
- # berlin (1)
- # calva (14)
- # cider (20)
- # clj-kondo (62)
- # cljdoc (7)
- # cljsrn (1)
- # clojure (206)
- # clojure-dev (2)
- # clojure-europe (11)
- # clojure-france (2)
- # clojure-italy (2)
- # clojure-nl (1)
- # clojure-uk (34)
- # clojured (1)
- # clojurescript (52)
- # copenhagen-clojurians (2)
- # core-async (1)
- # cryogen (3)
- # cursive (36)
- # data-science (27)
- # datomic (48)
- # emacs (1)
- # events (1)
- # fulcro (27)
- # hoplon (51)
- # jobs-discuss (1)
- # leiningen (1)
- # nrepl (2)
- # off-topic (52)
- # pathom (43)
- # quil (10)
- # re-frame (11)
- # reitit (28)
- # remote-jobs (2)
- # shadow-cljs (36)
- # sql (12)
- # tools-deps (7)
- # vim (32)
- # xtdb (17)
Hi All, I'm relatively new to vim so I might miss something trivial here, but here's my question. Watching the interactive demos on parinfer's site, https://shaunlebron.github.io/parinfer/, the built-in editor seems to override Tab behavior in a smart way. Pressing Tab or S-Tab (un)indents the line by variable colums, placing the content where it "makes sense", such as aligning it with different parts of the form above.
Starting from this
(defn component []
(html
[:div {:style {:background "#FFF"}}
:color "#000"
[:h1 "title"]]))
pressing Tab with the caret before ":color" will first align it with the "{" above, then with ":style", then "{", then ":background", skipping all colum positions that don't make sense.
I think this is extremely powerful in a lot of ways -
Is this achievable with vim? I've tried the different parinfer implementations (vim-parinfer, parinfer-rust), but no luck so far.
Thanks!
I don't think attempts at smart indenting have gone well. I want to say lack of apis in vim, but I'm not certain.
When my Fireplace is connected to a clj REPL but Iām in a cljs buffer, is there an easy way to run clj forms? It seems that cqc
will assume the current buffer filetype, eventually complaining that there is no cljs repl
What I want to run is just something like (user/node-repl)
that will turn my clj REPL into a cljs REPL
@martinklepsch You can use :CljEval <expr>
@jkr.sw ah sweet, thank you!
Iām noticing some issues with a cljs repl where once there is an error all subsequent form evaluations will stall/time out ā is that a problem someone has had before? Iām not sure if its fireplace or shadow-cljs
I think it's related to nodejs uncaughtexception https://nodejs.org/api/process.html#process_event_uncaughtexception
Hey fellas, is there anything that I can use that will pretty print fireplace eval results.
Just realised I am not using cider-nrepl at all, but can't use the latest cider-nrepl version since the most recently stable lein version for ubuntu is 2.8.1 and cider-nrepl needs 2.8.3
could try the lein script? https://leiningen.org/#install
just trying to find old versions of cider and running lein deps hoping its compatible with lein
I believe fireplace works with 0.6.0 https://github.com/nrepl/nrepl/blob/master/CHANGELOG.md#060-2019-02-05
can you get lein
by following the install instructions from https://leiningen.org rather than using your distribution package manager?
@dpsutton yep did that now . Followed the manual installation here https://purelyfunctional.tv/guide/how-to-install-clojure/ . ~/bin/
wasn't in my $PATH and was struggling with that. Now I have the latest nrepl and fireplace macroexpansion is pretty print enough for me now š . Thanks @dominicm