Skip to content

Indentation of multiline maps/keyword lists/structs #87

@ghost

Description

If i try to indent a multiline map the plugin will indent the map incorrectly. For example, the auto-indented map will look like this.

%{foo: "bar",
baz: "buzz"}

Where it should be

%{foo: "bar",
  baz: "buzz"}

of note, if you try to make a map with newlines (i.e. javascript style), it auto-indents fine.

%{
  foo: "bar",
  baz: "buzz
}

however, this is not usually how elixir code is formatted. The same is true for keyword lists as well as structs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions