This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-06
Channels
- # announcements (3)
- # asami (41)
- # aws (2)
- # babashka (65)
- # beginners (85)
- # biff (7)
- # calva (10)
- # cider (5)
- # cljsrn (32)
- # clojure (6)
- # clojure-czech (3)
- # clojure-europe (10)
- # clojure-russia (4)
- # clojure-uk (3)
- # clojurescript (5)
- # core-typed (7)
- # data-science (13)
- # datomic (43)
- # etaoin (4)
- # fulcro (22)
- # graphql (3)
- # gratitude (1)
- # helix (1)
- # joyride (2)
- # liquid (10)
- # malli (16)
- # off-topic (10)
- # other-languages (1)
- # polylith (10)
- # reitit (3)
- # scittle (7)
- # shadow-cljs (103)
- # tools-deps (10)
- # vim (9)
- # xtdb (2)
For some reason when I have a hanging indent and I edit the top level quickly, the indent gets messed up. If I type very slowly, everything stays aligned. Anyone know why this could be?
(def foo [1
2
3])
If I edit foo
and start typing something out quickly, like foobar
:
(def foobar [1]
2
3)
Are you using parinfer or paredit or something similar?
I have eraserhd/parinfer-rust and vim-iced, and vim-iced uses vim-sexp, which has it's own paredit-like thing.
try removing one of those and see if the problem continues. that'll help you narrow down the source of the issue.
don't have a solution, but as another data point, I've noticed the same thing with parinfer-rust
and vim-iced
If I disable Parinfer completely with :ParinferOff
, the alignment doesn't work at all.
Disabling vim-sexp's Paredit mode with let g:sexp_enable_insert_mode_mappings=0
and/or vim-iced's auto-indentation with let g:iced_enable_auto_indent = v:false
doesn't seem to have any impact.
@U021MPXUQBF the only thing that does seem to fix it is let g:parinfer_mode='paren'
, but then parens don't seem to get auto-balanced, which sucks even more IMO.
I wonder if other users of parinfer-rest are seeing the same behaviour.
I'm also a user of parinfer-rust and vim-iced, but it should be a parinfer-rust side problem. I could reproduce the problem by disabling vim-iced and typing much faster. But at my normal typing speed, there is no problem.