abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.19k stars 129 forks source link

lispy and cider disagree on proper indentation of clojure #367

Open sooheon opened 6 years ago

sooheon commented 6 years ago

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}))
abo-abo commented 6 years ago

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.

sooheon commented 6 years ago

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.

abo-abo commented 6 years ago

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

abo-abo commented 5 years ago

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