lispy icon indicating copy to clipboard operation
lispy copied to clipboard

lispy and cider disagree on proper indentation of clojure

Open sooheon opened this issue 8 years ago • 4 comments

The following is the correct indentation:

(defmodel Client :clients_table
  IModel
  (properties [_]
    {:timestamped? true}))

But lispy-tab gives me this:

(defmodel Client :clients_table
  IModel
  (properties [_]
              {:timestamped? true}))

sooheon avatar Aug 26 '17 07:08 sooheon

The version that lispy-tab gives is obtained directly from clojure-mode. I have clojure-mode Git version, around 4 months old; it gives me the same indent with indent-sexp. Updating to the latest Git version, no change to indent-sexp for your example.

abo-abo avatar Aug 26 '17 08:08 abo-abo

With just clojure-mode that's true. Once cider-mode is on, I think it adds something to the indent definition. Try enabling cider and comparing.

sooheon avatar Aug 26 '17 15:08 sooheon

I did cider-jack-in, enabled cider-mode in the buffer and called indent-sexp. No change.

abo-abo avatar Aug 27 '17 08:08 abo-abo

Still can't reproduce with the current CIDER and clojure-mode . Please provide more info.

abo-abo avatar Jul 01 '19 18:07 abo-abo