Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to avoid extra indentation step with julia_indent_align_funcargs = 0 #259

Open
ronisbr opened this issue May 7, 2021 · 3 comments

Comments

@ronisbr
Copy link
Contributor

ronisbr commented May 7, 2021

Hi!

If you want to follow BlueStyle, then the function declaration with a lot of arguments must be:

function foobar(
    df::DataFrame,
    id::Symbol,
    variable::Symbol,
    value::AbstractString,
    prefix::AbstractString="",
)

If we set julia_indent_align_funcargs = 0, then we can achieve something like this but with an extra alignment step:

function foobar(
        df::DataFrame,
        id::Symbol,
        variable::Symbol,
        value::AbstractString,
        prefix::AbstractString="",
)

Is it possible to add an option to match BlueStyle?

@rafaqz
Copy link

rafaqz commented Jan 6, 2022

I need this too

@ronisbr
Copy link
Contributor Author

ronisbr commented Jan 6, 2022

@rafaqz I tried to implement the feature myself. However, it turns out that my VimScript ability is not even close to do this :D

I managed to get what I described, but I broke many things with this :D

What I do in Vim to make things easier is to let it align as it is, and then type vi(<.

@goerz
Copy link

goerz commented Feb 25, 2022

If you don't mind hacking on the indent script, I think goerz/vimrc@1785628 fixes this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants