This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-10
Channels
- # announcements (4)
- # beginners (116)
- # boot (4)
- # calva (63)
- # cider (8)
- # clara (20)
- # cljdoc (10)
- # cljsrn (69)
- # clojure (115)
- # clojure-austin (1)
- # clojure-dev (4)
- # clojure-finland (1)
- # clojure-italy (3)
- # clojure-nl (6)
- # clojure-russia (10)
- # clojure-uk (84)
- # clojurescript (28)
- # cursive (14)
- # data-science (1)
- # datascript (1)
- # datomic (11)
- # duct (3)
- # emacs (13)
- # figwheel-main (11)
- # fulcro (4)
- # graphql (6)
- # jackdaw (2)
- # jobs (23)
- # jobs-rus (1)
- # kaocha (11)
- # lein-figwheel (13)
- # leiningen (55)
- # luminus (14)
- # lumo (22)
- # off-topic (121)
- # pathom (19)
- # re-frame (6)
- # reagent (3)
- # reitit (22)
- # remote-jobs (10)
- # ring-swagger (1)
- # shadow-cljs (67)
- # slack-help (5)
- # spacemacs (1)
- # sql (18)
- # vim (28)
- # yada (2)
Can someone remind me which plugin did pretty print of eval results for fireplace or which middleware I need to add for that to work?
It's annoying because the default can't assume cider, which means that it has to be clojure.pprint/pprint, which is notoriously slow.
Ok. Currently there is no way to make it work adding some middleware? Last week I had it working but I did some changes on my setup and I'm not sure if it was me or plugin changes that broke it.
Anyone using cljfmt
? I have one case where it is different from the “automatic” formatting I get from vim, and not sure why.
vim edit: (for plugins I have vim-clojure-static
, but not vim-cljfmt
)
(fn-name
arg1
arg2)
After running lein cljfmt fix
:
(fn-name
arg1
arg2)
cljfmt is removing one space on each line if the first argument to the function is not on the same line. This seems like an exception in cljfmt, where normally it does indent later lines by two spaces, like for let
, etc.@defndaines that's correct
my emacs-using coworkers and i sometimes engage in formatting wars because 1-space is the default for emacs and 2-space is the default for vim, lol
Vim users tend to be more precise about what they indent, and emacs users indent the whole thing. It's annoying.
I'm not quite on board for tonsky's formatting, but I really don't like how 1-space looks when you're not lining up literals
That issue was a good read, thanks for posting it. I see the argument for 1 space (tl;dr; it’s still just a “list” and not a special case)
I do prefer the 2 space, since in the rare case that I use this (it’s pretty rare), it’s because of trying to stack long arguments to a function.
(kinda-long-but-clear-function-name
::first-argument-could-be-namespaced/keywoord
a-map-that-is-also-descriptive-in-its-name)
heh Python's Black got me on 88, and I love it
My .vimrc has set colorcolumn=80
to highlight it for me. 🙂