emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/indent-bars b8319cf7d4 237/431: add support for json-ts


From: ELPA Syncer
Subject: [elpa] externals/indent-bars b8319cf7d4 237/431: add support for json-ts-mode and json-mode
Date: Mon, 16 Sep 2024 12:59:32 -0400 (EDT)

branch: externals/indent-bars
commit b8319cf7d420b247152fdd00abfe1e18f240b5b0
Author: oxcl <oxcl@proton.me>
Commit: oxcl <oxcl@proton.me>

    add support for json-ts-mode and json-mode
---
 indent-bars.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/indent-bars.el b/indent-bars.el
index 33f049e433..91b38de439 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -1129,6 +1129,10 @@ Adapted from `highlight-indentation-mode'."
     tab-width)
    ((and (derived-mode-p 'nix-ts-mode) (boundp 'nix-ts-mode-indent-offset))
     nix-ts-mode-indent-offset)
+   ((and (derived-mode-p 'json-ts-mode) (boundp 'json-ts-mode-indent-offset))
+    json-ts-mode-indent-offset)
+   ((and (derived-mode-p 'json-mode) (boundp 'js-indent-level))
+    js-indent-level)
    ((and (boundp 'standard-indent) standard-indent))
    (t 4)))                             ; backup
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]