avli / clojureVSCode

Clojure support for Visual Studio Code
https://avli.github.io/clojureVSCode/
MIT License
204 stars 34 forks source link

Allow to pass options to cljfmt. #74

Closed den1k closed 6 years ago

den1k commented 7 years ago

https://github.com/avli/clojureVSCode/blob/master/src/clojureFormat.ts#L39 passes nil as opts. cljfmt has some intrusive defaults like consecutive-blank-line? which are true by default and can thus not be disabled.

johnjelinek commented 7 years ago

I'm not sure if this is related, but if I format clojure in VS Code, it's putting a newline between every line. Example: before:

(defn example []
  (= 1 1))

after:

(defn example []

  (= 1 1))