julia-vim icon indicating copy to clipboard operation
julia-vim copied to clipboard

Indentation support for function chaining

Open digital-carver opened this issue 3 years ago • 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

digital-carver avatar Jun 16 '21 00:06 digital-carver

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.

TerseTears avatar Jul 19 '21 10:07 TerseTears