Skip to content

Commit

Permalink
Make highlight styles just provide styling
Browse files Browse the repository at this point in the history
Move highlighting into a separate facet.
  • Loading branch information
marijnh committed Oct 29, 2020
1 parent 86e66b3 commit ee1e39d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/basic-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {commentKeymap} from "@codemirror/next/comment"
import {rectangularSelection} from "@codemirror/next/rectangular-selection"
import {gotoLineKeymap} from "@codemirror/next/goto-line"
import {highlightActiveLine, highlightSelectionMatches} from "@codemirror/next/highlight-selection"
import {defaultHighlighter} from "@codemirror/next/highlight"
import {defaultHighlightStyle} from "@codemirror/next/highlight"
import {lintKeymap} from "@codemirror/next/lint"

/// This is an extension value that just pulls together a whole lot of
Expand All @@ -30,7 +30,7 @@ import {lintKeymap} from "@codemirror/next/lint"
/// - [custom selection drawing](#view.drawSelection)
/// - [multiple selections](#view.EditorView^allowMultipleSelections)
/// - [reindentation on input](#view.indentOnInput)
/// - [the default highlighter](#highlight.defaultHighlighter)
/// - [the default highlight style](#highlight.defaultHighlightStyle)
/// - [bracket matching](#matchbrackets.bracketMatching)
/// - [bracket closing](#closebrackets.closeBrackets)
/// - [autocompletion](#autocomplete.autocompletion)
Expand Down Expand Up @@ -58,7 +58,7 @@ export const basicSetup: Extension = [
drawSelection(),
EditorState.allowMultipleSelections.of(true),
indentOnInput(),
defaultHighlighter,
defaultHighlightStyle,
bracketMatching(),
closeBrackets(),
autocompletion(),
Expand Down

0 comments on commit ee1e39d

Please sign in to comment.