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