Skip to content

Inlined functions look wrongly formatted #2669

Description

@davesnx
let editor =
    Tiptap.Editor.use(
      ~provider,
      ~document=ydoc,
      ~renderCursor=CollaborationCursor.renderCursor,
      ~user=initialUser,
      ~onCreate=({editor}: Tiptap.createProps) => {
         onCreateEditor(editor)
      }
   );

Gets formatted to

let editor =
    Tiptap.Editor.use(
      ~provider,
      ~document=ydoc,
      ~renderCursor=CollaborationCursor.renderCursor,
      ~user=initialUser,
      ~onCreate=({editor}: Tiptap.createProps) => {
      onCreateEditor(editor)
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    Printerthings that have to do with turning an AST into Reason code

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions