Skip to content

Add Seperate Table Length Maximum #65

@benrob0329

Description

@benrob0329

Sometimes you want tables to be broken earlier than the standard line limit, it'd be nice to have an extra setting to break tables earlier/later than other lines.

Examples:

Current:

some.really.long.function_call(with, many, parameters)
table = {that = should, really = be, broken = sooner}

Or:

some.really.long.function_call(with, many,
                               parameters)
table = {
  that = now,
  is = actually,
  broken = sooner,
}

Suggested:

some.really.long.function_call(with, many, parameters)
table = {
  that = now,
  is = actually,
  broken = sooner,
}

Note that chop_down_table only seems to "chop down" tables if they would be longer than the line length limit. This is sane behavior, just not exactly what is needed for my project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions