branch: externals/indent-bars
commit b8319cf7d420b247152fdd00abfe1e18f240b5b0
Author: oxcl <[email protected]>
Commit: oxcl <[email protected]>
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