[fix] linewrap
This commit is contained in:
parent
83c80a4b8f
commit
e81d9ac6f2
6 changed files with 9 additions and 7 deletions
|
|
@ -3,11 +3,11 @@ import { EditorState, StateEffect } from '@codemirror/state';
|
|||
|
||||
import { lineNumbers, highlightActiveLineGutter, highlightSpecialChars,
|
||||
drawSelection, rectangularSelection, crosshairCursor, highlightActiveLine,
|
||||
keymap, dropCursor,EditorView } from '@codemirror/view';
|
||||
keymap, dropCursor,EditorView} from '@codemirror/view';
|
||||
|
||||
import { openSearchPanel, highlightSelectionMatches, searchKeymap } from '@codemirror/search';
|
||||
|
||||
import { openLintPanel, lintGutter, lintKeymap, linter, setDiagnostics, } from "@codemirror/lint"
|
||||
import { openLintPanel, lintGutter, lintKeymap, linter} from "@codemirror/lint"
|
||||
|
||||
import { indentWithTab, history, defaultKeymap, historyKeymap } from '@codemirror/commands';
|
||||
|
||||
|
|
@ -54,6 +54,7 @@ const baseExts = [
|
|||
drawSelection(),
|
||||
dropCursor(),
|
||||
EditorState.allowMultipleSelections.of(true),
|
||||
EditorView.lineWrapping,
|
||||
indentOnInput(),
|
||||
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
||||
bracketMatching(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue