JuliaEditorSupport/julia-vim

Indentation support for function chaining

digital-carver opened this issue · 1 comments

Currently, function chaining gets no indent:

myvariable = readline(infile) |>
collect |>
a -> reshape(a, (9, 9)) |>
permutedims

Something like what's below would be preferable, as with function arguments and the other examples mentioned in the docs.

myvariable = readline(infile) |>
              collect |>
              a -> reshape(a, (9, 9)) |>
              permutedims

I think the issue is with every infix operator, whereby breaking the line after the operator, simply doesn't indent the line that follows. Not sure if it's the proper style, but it is what I'm used to as well.