0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-07 18:48:39 +00:00
This commit is contained in:
Víctor Losada Hernández
2026-04-13 17:27:09 +02:00
parent 0208550ca3
commit de9df7d257
+3 -2
View File
@@ -14,8 +14,7 @@ import {
drawSelection, drawSelection,
dropCursor, dropCursor,
} from '@codemirror/view'; } from '@codemirror/view';
import { EditorState, Compartment } from '@codemirror/state'; import { EditorState, Compartment, StateEffect, StateField } from '@codemirror/state';
import { StateEffect, StateField } from '@codemirror/state';
import { foldAll as foldAllCmd, unfoldAll as unfoldAllCmd, foldGutter, foldKeymap, syntaxHighlighting } from '@codemirror/language'; import { foldAll as foldAllCmd, unfoldAll as unfoldAllCmd, foldGutter, foldKeymap, syntaxHighlighting } from '@codemirror/language';
import { defaultKeymap, history, undo, redo, undoDepth, redoDepth } from '@codemirror/commands'; import { defaultKeymap, history, undo, redo, undoDepth, redoDepth } from '@codemirror/commands';
import { languages } from '@codemirror/language-data'; import { languages } from '@codemirror/language-data';
@@ -96,6 +95,8 @@ const createHighlightPlugin = (renderer, tab)=>{
{ decorations: (v)=>v.decorations } { decorations: (v)=>v.decorations }
); );
}; };
const setProgrammaticCursorLine = StateEffect.define(); const setProgrammaticCursorLine = StateEffect.define();
const programmaticCursorLineField = StateField.define({ const programmaticCursorLineField = StateField.define({