overleaf/services/web/frontend/js/features/source-editor/extensions/bundle.ts

37 lines
559 B
TypeScript
Raw Normal View History

import { syntaxTree } from '@codemirror/language'
import {
EditorSelection,
Prec,
StateEffect,
StateField,
} from '@codemirror/state'
import {
Decoration,
EditorView,
hoverTooltip,
keymap,
ViewPlugin,
WidgetType,
} from '@codemirror/view'
import { CodeMirror, Vim, getCM } from '@replit/codemirror-vim'
export default {
Decoration,
EditorSelection,
EditorView,
Prec,
StateEffect,
StateField,
ViewPlugin,
WidgetType,
hoverTooltip,
keymap,
syntaxTree,
}
export const CodeMirrorVim = {
CodeMirror,
Vim,
getCM,
}