How to do custom formatting when using macro?

I’m using plumbergirl and it uses this macro >>>. My current code looks like this:
some_function(arg) >>> some_function(arg) >>> some_function(arg) >> some_function(arg)

Is there anyway/config to format it like a normal pipe operation using the .formatter.?
some_function(arg)
>>> some_function(arg)
>>> some_function(arg)
>>> some_function(arg)

1 Like

I came across the same problem today.

I don’t believe this is possible through configuration of formatter.exs.
There’s FreedomFormatter which extends the basic formatter somewhat but nothing “pluggable”/“extensible” as far as I can tell. Which is by design (like gofmt is for Go) so all Elixir code looks the same basically everywhere.

2 Likes