julia-vim
julia-vim copied to clipboard
Feature request: indent the line following `=` (rhs of `=` in newline)
It would be helpful to have an option to allow this type of indentation. For example:
a_quite_long_function_definition(with, a, number, of, variables) =
<indent>condition_1 ? value_1 :
<indent>condition_2 ? value_2 :
<indent>condition_3 ? value_3 :
...
value_n
Except from the alignment in :, at least the indentation after = would be nice. This will turn:
teste(a) =
if a == 1
return 1
else
return 2
end
into
teste(a) =
if a == 1
return 1
else
return 2
end
I think Julia-emacs does this.