Results 87 comments of shaun

it is fast for projects without profiles but we can cache the project.clj content and only reparse if it changes. ideally, we would monitor project.clj for changes and then refresh...

@zane wow, I didn't know indentation was a shortcut for differentiating functions and macros. Would the following be a decent compromise? ```clj ;; ✅two-space indentation ;; ✅child arguments are aligned...

> Other multi-line lists, vectors, maps and sets are **aligned with the first element (1 or 2 spaces)**. Possibly ambiguous, since this would pass the check (not intended right?): ```clj...

@zane great description of the problem, thanks for clarifying. **Interesting precedent**: This made me write about [how elm-format inspired prettier] to let the user _nudge_ the formatter for cases too...

worth making this clear: ## Rule 3's relation to clojure-mode: @bbatsov's [clojure-indent-style](https://github.com/clojure-emacs/clojure-mode/blob/master/clojure-mode.el#L96) specifies three different styles, and branches further based on the placement of `bar` in examples below: 1. **`:always-align`**...

@kkinnear is there code available for that? i had a thought to fork parinfer's code to do this, but only if the rules stay simple (it can only handle indentation...

Published `parindent`—parinfer repurposed to prototype these formatter rules: 👉 https://github.com/shaunlebron/parindent Diffs from popular repos: - [Diff for clojurescript core](https://gist.github.com/shaunlebron/d08cb06e162be725b0a5e75e586621f9) - [Diff for figwheel](https://gist.github.com/shaunlebron/791da3a0f8f1ce66e033ab74c6743070) - [Diff for instaparse](https://gist.github.com/shaunlebron/80eff44e2140708d9d33fd95a0547662) - [Diff for...

Been trying relaxed rules to allow 1-space, 2-space or Arg-alignment (chosen by first sibling line). Made a live page for trying these out (_edit on left, formatted output on right_):...

@kkinnear thanks for your comments: 1. Yes, symbol detection was removed for now, since two-space and arg-alignment weren't particular to symbols—as you said, it's sometimes desired for keywords (`:require` or...

To move discussion, if oversimplified rules are too restrictive, and runtime analysis is too heavy etc, what do people think if **oversimplified rules are more forgiving** by allowing 1-space or...