This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-29
Channels
- # announcements (4)
- # architecture (1)
- # beginners (113)
- # boot (17)
- # calva (40)
- # cider (9)
- # clara (1)
- # cljs-dev (21)
- # cljsrn (21)
- # clojure (47)
- # clojure-dev (8)
- # clojure-europe (2)
- # clojure-italy (46)
- # clojure-nl (10)
- # clojure-spec (1)
- # clojure-turkiye (1)
- # clojure-uk (46)
- # clojurescript (102)
- # core-async (21)
- # cursive (35)
- # data-science (1)
- # datomic (7)
- # emacs (2)
- # graphql (1)
- # lumo (15)
- # nrepl (4)
- # nyc (1)
- # off-topic (5)
- # overtone (3)
- # pathom (10)
- # quil (6)
- # re-frame (30)
- # reagent (7)
- # reitit (33)
- # rewrite-clj (1)
- # shadow-cljs (37)
- # spacemacs (73)
- # test-check (3)
- # testing (2)
- # vim (59)
I'm having a little problem getting to grips with vim(-fireplace) and vim-sexp and vim-sexp-mappings-for-regular-people. I can't seem to get slurpage to work as I thought it might. Here's a simple example:
I'm trying to slurp (println config)
into the ([config])
expression to end up with ([config] (println config)))
doesn't appear to. If I try that, the form remains the same, but the cursor jumps to the (
at (defn foo
Something is getting in the way I suspect. I think what I'll need to do is disable, then re-enable plugins one at a time to narrow this down.
Yup. I'll try to figure it out by stripping vim down, then re-enabling plugins one-at-a-time
so far, enabling vim-sexp and vim-sexp-mappings..., with the suggestion of >)
works, so something else in my plugins is doing something naughty...
with that enabled, the mapping doesn't work, or rather, I suspect it does work, but then parinfer-rust is doing something to rebalance the parens
yup, retested, confirmed. It's that. What do people use then to rebalance the parens?
So, I don't use parinfer at all. It takes a slightly different approach to this though, because of indentation. So you would need to do >>
on the println
Yeah, you would be in the realm of manually switching then. Usually smart mode can just do the job.
Too much indent. I guess parinfer-rust doesn't implement the dynamic tabstops. Pressing "i<space>" is the resort then :)
Yeah, I'm quite new to the setup, so I'm trying to find out what is comfortable. I think I'll ditch parinfer and do it like you
I am quite happy with https://github.com/vim-scripts/paredit.vim balances parenthesis for you but doesnβt mess/deal with intentation
I actually (inclined to) think, having a human, i.e., moi, manage the parens isn't too much of a burden π