90 lines
1.8 KiB
JavaScript
90 lines
1.8 KiB
JavaScript
import {
|
|
defaultKeymap,
|
|
history,
|
|
historyKeymap
|
|
} from "./chunk-TRAAS4SM.js";
|
|
import {
|
|
autocompletion,
|
|
closeBrackets,
|
|
closeBracketsKeymap,
|
|
completionKeymap
|
|
} from "./chunk-UFI6XSZR.js";
|
|
import {
|
|
bracketMatching,
|
|
defaultHighlightStyle,
|
|
foldGutter,
|
|
foldKeymap,
|
|
indentOnInput,
|
|
syntaxHighlighting
|
|
} from "./chunk-D63OSQ34.js";
|
|
import {
|
|
lintKeymap
|
|
} from "./chunk-P2DAGASU.js";
|
|
import {
|
|
highlightSelectionMatches,
|
|
searchKeymap
|
|
} from "./chunk-JOEDLCIZ.js";
|
|
import "./chunk-B45MRPPJ.js";
|
|
import {
|
|
EditorView,
|
|
crosshairCursor,
|
|
drawSelection,
|
|
dropCursor,
|
|
highlightActiveLine,
|
|
highlightActiveLineGutter,
|
|
highlightSpecialChars,
|
|
keymap,
|
|
lineNumbers,
|
|
rectangularSelection
|
|
} from "./chunk-LORPBXGU.js";
|
|
import {
|
|
EditorState
|
|
} from "./chunk-MKFMOIK6.js";
|
|
import "./chunk-BSVZPYOD.js";
|
|
|
|
// node_modules/codemirror/dist/index.js
|
|
var basicSetup = (() => [
|
|
lineNumbers(),
|
|
highlightActiveLineGutter(),
|
|
highlightSpecialChars(),
|
|
history(),
|
|
foldGutter(),
|
|
drawSelection(),
|
|
dropCursor(),
|
|
EditorState.allowMultipleSelections.of(true),
|
|
indentOnInput(),
|
|
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
|
bracketMatching(),
|
|
closeBrackets(),
|
|
autocompletion(),
|
|
rectangularSelection(),
|
|
crosshairCursor(),
|
|
highlightActiveLine(),
|
|
highlightSelectionMatches(),
|
|
keymap.of([
|
|
...closeBracketsKeymap,
|
|
...defaultKeymap,
|
|
...searchKeymap,
|
|
...historyKeymap,
|
|
...foldKeymap,
|
|
...completionKeymap,
|
|
...lintKeymap
|
|
])
|
|
])();
|
|
var minimalSetup = (() => [
|
|
highlightSpecialChars(),
|
|
history(),
|
|
drawSelection(),
|
|
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
|
keymap.of([
|
|
...defaultKeymap,
|
|
...historyKeymap
|
|
])
|
|
])();
|
|
export {
|
|
EditorView,
|
|
basicSetup,
|
|
minimalSetup
|
|
};
|
|
//# sourceMappingURL=codemirror.js.map
|