-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbasicSetupNoKeymap.ts
More file actions
27 lines (25 loc) · 975 Bytes
/
basicSetupNoKeymap.ts
File metadata and controls
27 lines (25 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { rectangularSelection, lineNumbers, highlightActiveLineGutter, highlightSpecialChars, drawSelection, highlightActiveLine, dropCursor} from "@codemirror/view"
import {EditorState} from "@codemirror/state"
import {history} from "@codemirror/commands"
import {indentOnInput, foldGutter, bracketMatching, defaultHighlightStyle, syntaxHighlighting} from "@codemirror/language"
import {highlightSelectionMatches} from "@codemirror/search"
import {closeBrackets, autocompletion} from "@codemirror/autocomplete"
const basicSetup = [
lineNumbers(),
highlightActiveLineGutter(),
highlightSpecialChars(),
history(),
foldGutter(),
drawSelection(),
dropCursor(),
EditorState.allowMultipleSelections.of(true),
indentOnInput(),
syntaxHighlighting(defaultHighlightStyle, {fallback: true}),
bracketMatching(),
closeBrackets(),
autocompletion(),
rectangularSelection(),
highlightActiveLine(),
highlightSelectionMatches(),
];
export default basicSetup;