Skip to content

Indent lines of closers accroding to the first closer instead of the last closer #191

Description

@xinhaoyuan

First of all, thanks for the great work!

Consider this example:

foo(bar,
    {
       key = value
})

The last line is aligned according to the latter ), which matches the indent level of foo(. Is it possible to have an option to match using the first closer } instead? I.e. the above block becomes

foo(bar,
    {
       key = value
    })

This looks more similar with how C is indented in Emacs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions