This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-23
Channels
- # beginners (27)
- # boot (8)
- # cider (17)
- # cljs-dev (8)
- # cljsrn (5)
- # clojure (56)
- # clojure-dev (34)
- # clojure-gamedev (4)
- # clojure-italy (32)
- # clojure-nl (22)
- # clojure-poland (3)
- # clojure-russia (17)
- # clojure-spec (31)
- # clojure-uk (48)
- # clojurescript (47)
- # core-async (41)
- # cursive (13)
- # datomic (22)
- # emacs (9)
- # figwheel (7)
- # fulcro (18)
- # graphql (3)
- # hoplon (15)
- # jobs-discuss (38)
- # keechma (1)
- # luminus (10)
- # off-topic (42)
- # onyx (8)
- # overtone (3)
- # protorepl (5)
- # re-frame (42)
- # reagent (6)
- # reitit (3)
- # schema (4)
- # shadow-cljs (39)
- # slack-help (5)
- # spacemacs (8)
- # specter (1)
- # tools-deps (36)
- # uncomplicate (9)
- # vim (34)
Hello! Whenever I try to indent clojure code in vim with =G
vim takes a really long time to indent my source code. Has anyone else experienced that? I’m running fireplace, rainbow_parentheses, vim-clojure-static.
@blmstrm You might have better performance using gqG
which uses clojure to do the formatting
@dominicm no luck. Nothing seems to happen. It’s not even reacting. Can their be some other thing messing this up? I’m using vim 8.0 on osx.
the newer fireplace has a custom formatter, which uses cljfmt, so I'm surprised :thinking_face: maybe
I noticed now that I also have vim-classpath, vim-fugitive and vim-sensible installed.
i'm using neovim, so that's a difference. i have classpath and fugitive, but not sensible
interestingly, i have gq
remapped to gw
ever since i read up on the custom formatter that uses cljfmt, simply because i occasionally want to be able to edit clojure code without being connected to a repl
but if the custom formatter is significantly faster than e.g. =G
, then i might rethink that
@blmstrm silly question: are you connected to a repl via fireplace? if you aren't, i'll bet gq
is a no-op
...wow. this is way faster! i'm totally going to use the gq
mapping now. it is a no-op if you're not connected to a repl, which is maybe not ideal -- i feel like it should show you an error message about not being connected to a repl
@dave I think I'm connected to the repl. I always thought running lein repl
in the project root in a separate terminal would do it?
my go-to way of checking is to type cqp
to open the prompt, then evaluate (+)
in the repl. if you get 0, you're connected
running lein repl
or boot repl
in the project root in a separate terminal should absolutely do the trick. doing either of those creates an .nrepl-port
file, which fireplace picks up on so it knows what port to connect to
@dave yeah, that's what I thought too, but now I'm kinda hoping that I wasn't connected.
I’ve made sure I’m connected and I don’t use cider-nrepl. Is there some other command that “should” just work? I know I can use gf
, just fine.