clj-refactor.nvim
clj-refactor.nvim copied to clipboard
`crml` (move to let) does not indent properly
This is sort of similar to #21, though I'm not sure if it's technically related or not.
If I have this form:
(let [advertiser (-> advertiser
(unparse-custom-fields :rtbcustomfields))]
(if (zero? id)
(api-client/create-advertiser! (api-key) advertiser)
(api-client/update-advertiser! (api-key) advertiser)))
And I move my cursor to the (zero? id) form and do crml, naming the binding id-zero?, this is the result:
(let [advertiser (-> advertiser
(unparse-custom-fields :rtbcustomfields))
id-zero? (zero? id)]
(if id-zero?
(api-client/create-advertiser! (api-key) advertiser)
(api-client/update-advertiser! (api-key) advertiser)))
(This is with parinfer disabled. With parinfer enabled, it's worse because parinfer rearranges my parens based on the indentation.)