diff options
| author | gkowzan <grzegorz@kowzan.eu> | 2025-08-08 01:20:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 16:20:59 -0700 |
| commit | f1d36031fc162f541f77d4f6c6c0fd6197aba077 (patch) | |
| tree | 9cdded00f22ad9f1999649fcdb36fac530a39347 | |
| parent | 7dd0c477231165535beba267ff734b6918385cb6 (diff) | |
add `js-json-mode` to `apheleia-formatters-indent` (#375)
Add `js-json-mode` to `apheleia-formatters-indent` with the same
behavior as `json-mode`.
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | apheleia-utils.el | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 36b50f5..a0e5b83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The format is based on [Keep a Changelog]. ### Bugs fixed * aphelia-formatters-indent did not handle yaml-ts-mode; added with same behaviour as yaml-mode +* aphelia-formatters-indent did not handle js-json-mode; added with + same behaviour as json-mode * A formatter that adds indentation while point is at the end of the line would sometimes leave point at the wrong position ([#362]). ### Formatters diff --git a/apheleia-utils.el b/apheleia-utils.el index d97594f..5f000e9 100644 --- a/apheleia-utils.el +++ b/apheleia-utils.el @@ -48,6 +48,7 @@ always returns nil to defer to the formatter." (js2-mode 'js2-basic-offset) (js3-mode 'js3-indent-level) (json-mode 'js-indent-level) + (js-json-mode 'js-indent-level) (json-ts-mode 'json-ts-mode-indent-offset) (nxml-mode 'nxml-child-indent) (robot-mode 'robot-mode-basic-offset) |
