cfahlgren1 HF staff commited on
Commit
a2a2339
1 Parent(s): 252db8d

add linewrap

Browse files
Files changed (1) hide show
  1. src/pages/index.tsx +3 -1
src/pages/index.tsx CHANGED
@@ -3,6 +3,7 @@ import Link from "next/link";
3
  import CodeMirror from "@uiw/react-codemirror";
4
  import { inlineSuggestion } from "codemirror-extension-inline-suggestion";
5
  import { EditorState } from "@codemirror/state";
 
6
  import * as webllm from "@mlc-ai/web-llm";
7
  import { useState, useEffect } from "react";
8
 
@@ -85,7 +86,8 @@ export default function Home() {
85
  return (await generateCompletion(content)) || "";
86
  },
87
  delay: 500
88
- })
 
89
  ]}
90
  />
91
  </div>
 
3
  import CodeMirror from "@uiw/react-codemirror";
4
  import { inlineSuggestion } from "codemirror-extension-inline-suggestion";
5
  import { EditorState } from "@codemirror/state";
6
+ import { EditorView } from "@codemirror/view";
7
  import * as webllm from "@mlc-ai/web-llm";
8
  import { useState, useEffect } from "react";
9
 
 
86
  return (await generateCompletion(content)) || "";
87
  },
88
  delay: 500
89
+ }),
90
+ EditorView.lineWrapping
91
  ]}
92
  />
93
  </div>