Adds highlight on current indentation mark to code editor (#21972)

* Adds highlight on current indentation mark to code editor

* code review
This commit is contained in:
Miguel Palhas
2024-09-25 12:35:47 +01:00
committed by GitHub
parent e687ddab21
commit 2793ca65cd
4 changed files with 22 additions and 0 deletions

View File

@@ -180,6 +180,14 @@ export class HaCodeEditor extends ReactiveElement {
this._loadedCodeMirror.crosshairCursor(),
this._loadedCodeMirror.highlightSelectionMatches(),
this._loadedCodeMirror.highlightActiveLine(),
this._loadedCodeMirror.indentationMarkers({
thickness: 0,
activeThickness: 1,
colors: {
activeLight: "var(--secondary-text-color)",
activeDark: "var(--secondary-text-color)",
},
}),
this._loadedCodeMirror.keymap.of([
...this._loadedCodeMirror.defaultKeymap,
...this._loadedCodeMirror.searchKeymap,