mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
chore(code): reintroduce tab size of 4
This commit is contained in:
parent
d29286f9e3
commit
9867cd83c4
@ -1,6 +1,6 @@
|
||||
import { defaultKeymap, indentWithTab } from "@codemirror/commands";
|
||||
import { EditorView, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig, type KeyBinding } from "@codemirror/view";
|
||||
import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting } from "@codemirror/language";
|
||||
import { EditorView, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig } from "@codemirror/view";
|
||||
import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit } from "@codemirror/language";
|
||||
import { Compartment } from "@codemirror/state";
|
||||
import byMimeType from "./syntax_highlighting.js";
|
||||
|
||||
@ -25,7 +25,8 @@ export default class CodeMirror extends EditorView {
|
||||
]),
|
||||
languageCompartment.of([]),
|
||||
syntaxHighlighting(defaultHighlightStyle),
|
||||
lineNumbers()
|
||||
lineNumbers(),
|
||||
indentUnit.of(" ".repeat(4))
|
||||
];
|
||||
|
||||
if (Array.isArray(config.extensions)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user