mirror of
https://github.com/heyman/heynote.git
synced 2024-12-23 07:08:49 +01:00
Indent with 4 spaces
This commit is contained in:
parent
570fdba08b
commit
bbab47a8ac
@ -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(),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user