bhauman / bhauman/clojure-mcp

Add config for and/or retain file formatting, for comments and alignment

Open
#128 7 comments 1 reaction 0 assignees View on GitHub
Dominant language
Clojure
Stars
775
Forks
83
PR merge metrics
No merged PRs in 30d

Description

I've loved using clojure-mcp but one point of annoyance has been that after any edit to a section of a file I have to go and manually re-run CIDER's clojure-align operation to fix vertical alignments of let expressions, destructures, and maps.

I would love it if there were a config option or default to keeping forms vertically aligned for readability.

e.g.

Actual
--
```clojure
(let [short-var true
much-longer-var-name-that-should-force-alignment true

some-map {:a 1
:alphabetical 2}]
...)
```

Expected
--
```clojure
(let [short-var true
much-longer-var-name-that-should-force-alignment true

some-map {:a 1
:alphabetical 2}]
...)
```

Similarly for comments, a real snippet where I had manually aligned a comment and then clojure-mcp undid it:

Actual
--
```clojure
(filter (fn [[_k v]]
(or (= type-kw (:document/type v)) ;; v1
(= type-kw (:type-kw v))))) ;; v0
```

Expected
--
```clojure
(filter (fn [[_k v]]
(or (= type-kw (:document/type v)) ;; v1
(= type-kw (:type-kw v))))) ;; v0
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.