Disable horizontal scroll in Codemirror editor (automatic "linebreaks")

I want the editor to look like that, so you can see the whole content without having to scroll…
is there any property you can set so it adds those automatic linebreaks (without it being a new codeline)?

What I have right now:

Figured it out! Didn´t see the, that there was a EditorView.lineWrapping extension, which you can add to your extensions array!