Add lint gutter
This commit is contained in:
parent
24aaf68184
commit
38698c24ed
|
|
@ -32,7 +32,7 @@ import {
|
||||||
import { languages } from "@codemirror/language-data";
|
import { languages } from "@codemirror/language-data";
|
||||||
import { autocompletion, closeBrackets } from "@codemirror/autocomplete";
|
import { autocompletion, closeBrackets } from "@codemirror/autocomplete";
|
||||||
import { highlightSelectionMatches, searchKeymap } from "@codemirror/search";
|
import { highlightSelectionMatches, searchKeymap } from "@codemirror/search";
|
||||||
import { lintKeymap } from "@codemirror/lint";
|
import { lintGutter, lintKeymap } from "@codemirror/lint";
|
||||||
import van from "vanjs-core";
|
import van from "vanjs-core";
|
||||||
import { Displayable } from "./displayable";
|
import { Displayable } from "./displayable";
|
||||||
import { createLspExtension } from "./lsp";
|
import { createLspExtension } from "./lsp";
|
||||||
|
|
@ -146,6 +146,7 @@ export class Editor extends Displayable {
|
||||||
lineNumbers(),
|
lineNumbers(),
|
||||||
highlightSpecialChars(),
|
highlightSpecialChars(),
|
||||||
foldGutter(),
|
foldGutter(),
|
||||||
|
lintGutter(),
|
||||||
drawSelection(),
|
drawSelection(),
|
||||||
dropCursor(),
|
dropCursor(),
|
||||||
EditorState.allowMultipleSelections.of(true),
|
EditorState.allowMultipleSelections.of(true),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue