import { combineConfig, Facet } from '@codemirror/state'; export interface IndentationMarkerConfiguration { /** * Determines whether active block marker is styled differently. */ highlightActiveBlock?: boolean; /** * Determines whether markers in the first column are omitted. */ hideFirstIndent?: boolean; /** * Determines the type of indentation marker. */ markerType?: 'fullScope' | 'codeOnly'; } export const indentationMarkerConfig = Facet.define< IndentationMarkerConfiguration, Required >({ combine(configs) { return combineConfig(configs, { highlightActiveBlock: true, hideFirstIndent: false, markerType: 'codeOnly', }); }, });