reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.08k stars 425 forks source link

Inlined functions look wrongly formatted #2669

Open davesnx opened 2 years ago

davesnx commented 2 years ago
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)
    });