Created
April 29, 2025 15:49
-
-
Save nathanmarz/94be3d0dc3a88aedb90759c27b0a1a76 to your computer and use it in GitHub Desktop.
Rama zprint config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: clojure; -*- | |
{:width 80 | |
:comment {:wrap? true :count? nil} | |
:list {:indent-arg 1 :respect-nl? true} | |
:vector {:respect-nl? true} | |
:set {:respect-nl? true} | |
:pair {:indent 0} | |
:map {:comma? false | |
:justify? true | |
;; @see https://github.com/kkinnear/zprint/issues/162 | |
:respect-nl? true | |
:indent 0} | |
:extend {:indent 0} | |
;; @see https://github.com/kkinnear/zprint/blob/master/doc/options/pairs.md | |
:binding {:justify? true :indent 0} | |
:fn-map | |
{"<<ramaop" [:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"<<ramafn" [:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"<<atomic" [:none-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"<<branch" [:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"<<cond" [:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"<<if" [:arg1-force-nl | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"<<query-topology" :arg1-body | |
"<<shadowif" [:arg1-force-nl | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"<<subsource" :arg1-body | |
"<<switch" :arg1-body | |
"case>" [:none {:self-indent+ -1}] | |
"defdepotpartitioner" [:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"deframaop" [:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"deframafn" [:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"default>" [:none {:self-indent+ -1}] | |
"defbasicsegmacro" [:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"defbasicblocksegmacro" [:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"defmodule" :arg1-body | |
"defrichnav" :arg1-body | |
"else>" [:none {:self-indent+ -1}] | |
"generator" :arg1-body | |
"if-path" :arg1-body | |
"ifexpr" :arg1-body | |
"loop<-" | |
:arg1-body | |
"module" | |
[:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"segmacro" | |
:arg1-body | |
"select>" | |
:arg1-body | |
"<<sources" | |
[:arg1-body | |
{:list {:indent-arg 2} | |
:next-inner {:list {:indent-arg 1}}}] | |
"source>" | |
[:none {:self-indent+ -1}] | |
} | |
:factor-output-streams? true | |
:skip-forms-with #{"defjavadoc" "extend" "seg#"} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment