clj-refactor.nvim icon indicating copy to clipboard operation
clj-refactor.nvim copied to clipboard

The thread commands do not properly indent resulting code

Open daveyarwood opened this issue 7 years ago • 0 comments

Given a form like this:

      (is (= (pitch/hz->midi 7.95) 0))

The thread commands do not correctly indent the resulting forms:

;; crtf (thread-first-all)
      (-> 7.95
pitch/hz->midi
(= 0)
is)

;; crtl (thread-last-all)
      (->> 0
(= (pitch/hz->midi 7.95))
is)

;; crtt (thread-last)
      (->> (= (pitch/hz->midi 7.95) 0)
is)

;; crth (thread)
      (-> (= (pitch/hz->midi 7.95) 0)
is)

daveyarwood avatar May 18 '18 14:05 daveyarwood