Ensure no default extensions conflict with extensions in defaultSettings

This commit is contained in:
Dsm0 2025-07-16 15:03:55 -07:00
parent 10156f0067
commit 06fafbd8eb

View file

@ -23,20 +23,20 @@ import { completionKeymap, closeBracketsKeymap } from '@codemirror/autocomplete'
// Taken + slightly modified from https://github.com/codemirror/basic-setup/blob/main/src/codemirror.ts // Taken + slightly modified from https://github.com/codemirror/basic-setup/blob/main/src/codemirror.ts
export const basicSetup = (() => [ export const basicSetup = (() => [
lineNumbers(), // lineNumbers(),
highlightActiveLineGutter(), // highlightActiveLineGutter(),
highlightSpecialChars(), highlightSpecialChars(),
history(), history(),
foldGutter(), // foldGutter(),
drawSelection(), drawSelection(),
dropCursor(), dropCursor(),
// EditorState.allowMultipleSelections.of(true), // EditorState.allowMultipleSelections.of(true),
// indentOnInput(), // indentOnInput(),
syntaxHighlighting(defaultHighlightStyle, { fallback: true }), // syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
// autocompletion(), // autocompletion(),
rectangularSelection(), rectangularSelection(),
crosshairCursor(), crosshairCursor(),
highlightActiveLine(), // highlightActiveLine(),
highlightSelectionMatches(), highlightSelectionMatches(),
keymap.of([ keymap.of([
...closeBracketsKeymap, ...closeBracketsKeymap,