@dpsutton That did the trick!
(setq clojure-align-separator 'entire)
https://github.com/clj-kondo/clj-kondo.lsp/blob/master/bb.ednI am currently trying out lsp-mode with clojure and I do somewhat like it so far, but what's driving me insane is that it won't align any forms, although align automatically is set to true
does anybody know how to fix that?
I've read it uses cljfmt internally and this should be configurable, but I couldn't find out how
Do you have lsp-enable-identation to t?
If so, you can just call lsp-format-buffer
that does not align forms
what do you mean with align forms? like vertically?
If so, this is not possible with clojure-lsp yet because of https://clojurians.slack.com/archives/CHB5Q2XUJ/p1619891221242100
the onlyt possible way to do that is with clojure-align
built-in in clojure-mode
for emacs
I personally really dislike this kind of alignment. It's quite inconsistent between editors and when done manually it ends up full of random/personal rules. When working with code bases with many contributors it ends up quite messy in my experience.
I also don't think it makes code more readable, but I get that part is personal.
clj-fmt can enforce the "non justified" style too: :remove-multiple-non-indenting-spaces?
but cljfmt can't align forms vertically yet, right?
No it can't afaik