mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
* feat: updating how modules are being defined (using new version of DITY) * chore: removing deprecated module
14 lines
458 B
TypeScript
14 lines
458 B
TypeScript
import { EditorView, ViewPlugin } from "@codemirror/view";
|
|
import { App, Plugin } from "obsidian";
|
|
import { RendererRegistry } from "../editor/renderer/rendererRegistry";
|
|
import { SQLSealViewPlugin } from "./editorExtension/syntaxHighlight";
|
|
|
|
export const syntaxHighlightInit = (
|
|
plugin: Plugin,
|
|
viewPluginGenerator: () => ViewPlugin<any>,
|
|
) => {
|
|
return () => {
|
|
// FIXME: settings here.
|
|
plugin.registerEditorExtension([viewPluginGenerator()]);
|
|
};
|
|
};
|