This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-30
Channels
- # 100-days-of-code (2)
- # announcements (2)
- # beginners (8)
- # boot (6)
- # calva (52)
- # cider (6)
- # cljs-dev (11)
- # cljsrn (3)
- # clojure (58)
- # clojure-austin (2)
- # clojure-russia (6)
- # clojure-spec (23)
- # clojure-uk (12)
- # clojurescript (29)
- # datomic (10)
- # emacs (1)
- # figwheel (2)
- # figwheel-main (2)
- # fulcro (3)
- # luminus (1)
- # off-topic (38)
- # re-frame (21)
- # ring-swagger (1)
- # robots (1)
- # shadow-cljs (65)
- # spacemacs (3)
- # tools-deps (16)
I've been playing around with calva and find it really cool! There are a couple of things that hold me back from switching from Atom setup and was wondering maybe I'm just not aware if this can be also done in calva?
when I edit the code and let's say press the tab button I would like that the whole s-expression moves and not only first line
this is supported by parinfer smart mode, is this also available in calva?
It isn't. But should be reasonably simple to implement, unless I am overlooking something. I can give it a shot!
@jacek.schae: in what situation would you want to indent the form like that? Calva would reformat it back to conform with community standards…
@pez you mean when I change something and click save it would automatically align everything?
It tries to do that today (if that setting is on), but actually it often fails. But when it succeeds, or you use the Format Document command it will align things.
this kind of indentation that i put in the gif I use very often - for example when editing any reagent files and need to move-in or move-out some hiccup forms from nesting
this will automatically also add/remove parens
i don't know what is the best way to explain this ...
Unfortunately parinfer smart mode is hard to implement in VS Code. There has been work put on it, but I don’t think they have succeeded yet.
What I do when working with hiccup (for instance) is that I slurp and barf stuff using Paredit.
:thinking_face: just trying it out. I guess the closest is to highlight everything and then use cmd + {
and cmd + }
slurping
I have bound slurping to ctrl+right
and barfing to ctrl+left
, but that is because I got used to that on emacs (and because cmd+{
does not really work on a Swedish keyboard layout).
i have calva paredit and calva installed
calva formatter too
i guess the last one comes with calva
right
Yeah, I moved the formatting out of Calva to let people have the option to use the formatter even if they wanted to use some other REPL extension.
In any case. If the #parinfer team, manages to get smart mode to work in VS Code then I will do my best to make Calva compatible with it. Until then I think Paredit is the choice.
i really appreciate you work around this
love VS Code and would to switch
i wrote this article some time ago https://medium.com/@jacekschae/slick-clojure-editor-setup-with-atom-a3c1b528b722
and wanted to do the same for vscode and calva
is there any resource that you would recommend for calva?
I could use this as a base for writing
That would be awesome. Though Calva is a long way from matching some of Proto REPL’s magic.
I like how you have structured that Atom article. It would be a great resource for people to get started with Clojure on VS Code and bridge some of the gaps that exists today.
it's the same thing i use for atom
do i need to set up something for calva-fmt to kick-in?
Someone, somewhere, suggested to try some other linter, the other day. I have it on my todo to check it out.
would it be too much to ask for a quick hangout session to show me few things?
would you have time now?
what email should i use to send you an invite?
Thanks for your time - it did!