Fork me on GitHub
#lsp
<
2021-09-20
>
anonimitoraf01:09:49

Hi guys, I like how aggressive-indent-mode (Emacs) auto-aligns map keys etc. But I don't like how it does it after key input. Is there a way for LSP to indent like aggressive-indent-mode does (on-save)?

all-clear 2
ericdallo01:09:30

what aggressive-indent-mode does specifically that you would like to see on LSP?

anonimitoraf02:09:39

Ah, I guess, first and foremost, auto-aligning hashmap and let entries

ericdallo02:09:28

there is a issue to cljfmt support that, but ATM it's no possible with LSP. I use clojure-alignmanually to do that, usually with C-c SPC

anonimitoraf02:09:06

Oh wow. Didn't know that existed. No worries! I'll just write some Elisp to call clojure-align (beg, end = whole buffer) on-save Thanks

👍 2
papachan13:09:39

Can we use clean-ns as a github action task?

all-clear 2
papachan13:09:17

wow. wo nice

🚀 2
borkdude13:09:51

aaaaawesome ;)

🚀 2