diff options
| author | James Ferguson <wjcferguson@gmail.com> | 2025-07-18 20:09:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-18 17:09:41 -0700 |
| commit | f2cb86aa0f5d33e5bd271dbc80359270cf4cf9c7 (patch) | |
| tree | 6f670b19a47f68d188ba45507d361ce710cd60e6 | |
| parent | f3308f53d3fd15b808abc583fa4c50a197f0d1e9 (diff) | |
add yaml-ts-mode to aphelia-formatters-indent (#370)
Trivial change - other modes include `-ts-mode` variants, but not yaml.
This fix is confirmed to work for me, taking the indent level from
`yaml-indent-offset`.
---------
Co-authored-by: James Ferguson <james@faff.org>
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | apheleia-utils.el | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a63b0e..cb4ac0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog]. ## Unreleased ### Bugs fixed +* aphelia-formatters-indent did not handle yaml-ts-mode; added with + same behaviour as yaml-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 ab7f032..d97594f 100644 --- a/apheleia-utils.el +++ b/apheleia-utils.el @@ -61,7 +61,8 @@ always returns nil to defer to the formatter." (tsx-ts-mode 'typescript-ts-mode-indent-offset) (typescript-mode 'typescript-indent-level) (typescript-ts-mode 'typescript-ts-mode-indent-offset) - (yaml-mode 'yaml-indent-offset)))) + (yaml-mode 'yaml-indent-offset) + (yaml-ts-mode 'yaml-indent-offset)))) (when-let ((indent (and indent-var (boundp indent-var) |
