Indent with 4 spaces

This commit is contained in:
Jonatan Heyman 2022-12-30 11:06:29 +01:00
parent 570fdba08b
commit bbab47a8ac
1 changed files with 6 additions and 5 deletions

View File

@ -1,8 +1,9 @@
import {Annotation, EditorState, Compartment} from "@codemirror/state"
import {EditorView, keymap, drawSelection} from "@codemirror/view"
import { Annotation, EditorState, Compartment } from "@codemirror/state"
import { EditorView, keymap, drawSelection } from "@codemirror/view"
import { indentUnit } from "@codemirror/language"
import {indentWithTab, insertTab, indentLess, indentMore} from "@codemirror/commands"
import {nord} from "./theme/nord.mjs"
import { indentWithTab, insertTab, indentLess, indentMore } from "@codemirror/commands"
import { nord } from "./theme/nord.mjs"
import initialData from "./fixture.js"
import { customSetup } from "./setup.js"
import { heynoteLang } from "./lang-heynote/heynote.js"
@ -38,7 +39,7 @@ let state = EditorState.create({
},
]),
nord,
indentUnit.of(" "),
heynoteLang(),
noteBlockExtension(),