Fork me on GitHub
#cider
<
2023-10-04
>
hifumi12321:10:59

Has anyone else seen identation break for helix's defnc macro in latest CIDER? and other def-like macros

vemv22:10:58

See https://github.com/lilactown/helix/issues/146 and related threads over #cider The fix would be very simple, namely declare indentation metadata explicitly (as people always were supposed to) https://docs.cider.mx/cider/indent_spec.html You can, in the meantime, alter-meta! the vars to add a sensible :style/indent in user.clj Hope it helps!

vemv09:10:02

I have good news though, def-like macros will get no more inference starting from the next cider-nrepl release (should be available around tomorrow) https://github.com/clojure-emacs/orchard/pull/194 Some macros like helix' $ will still need to get an explicit specification for them to behave as usual.