-
Notifications
You must be signed in to change notification settings - Fork 18
map indentation / aligment #3
Comments
Example: {:1 1
:2 2
:3 3
:4 {:a [1 2
3 4]}
:5 {:a {:b [[1 2]
[3 4]
[5 6]
[7 8]]}}
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.15"]
[binaryage/devtools "0.9.9"]
[com.cemerick/piggieback "0.2.2"]]}}
:6 [1 2]} How it should look: {:1 1
:2 2
:3 3
:4 {:a [1 2
3 4]}
:5 {:a {:b [[1 2]
[3 4]
[5 6]
[7 8]]}}
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.15"]
[binaryage/devtools "0.9.9"]
[com.cemerick/piggieback "0.2.2"]]}}
:6 [1 2]} |
I wonder what is going on there with the last example. This is what I get: {:1 1
:2 2
:3 3
:4 {:a [1 2
3 4]}
:5 {:a {:b [[1 2]
[3 4]
[5 6]
[7 8]]}}
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.15"]
[binaryage/devtools "0.9.9"]
[com.cemerick/piggieback "0.2.2"]]}}
:6 [1 2]} Which seems to be the correct indentation. The spacing between items on the same line is left untouched, which is a good thing waiting for some way to configure if items should be made to align in a tabular manner. Lacking that it would be a bit rude to remove spaces that the user might have worked with placing there. |
I would say it is rude to not use 1 space or aligned version for map as developer heh ;) We have this 2 standards to format code and I have never seen people doing it in different way. IMO Curisve is really good, practice, tested and stable thing to copy solution. Personally i can't demand from it anything more. Two configurable option for maps:
|
After discussion with @PEZ: The issue should be in Parinfer extension or Calva extension. It is not Paredit issue. As my understanding is: I am not sure if Parinfer can be common for all lisp languages. That is why solution should be implemented in Parinfer or Calva. |
I use https://github.com/PEZ/clojure4vscode with paredit.
I can't make this
($x:text "url" %)
to indent correctly. It works perfect in Cursive.It can be tested with:
The text was updated successfully, but these errors were encountered: