diff options
| author | hgranthorner <37941012+hgranthorner@users.noreply.github.com> | 2024-10-17 19:29:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 23:29:37 +0000 |
| commit | 568ad0154d4ff07bdded17b404fb6b2086afd235 (patch) | |
| tree | 084a6004e8ca32a6e024c60e7aee3ed7867d0a31 /apheleia-formatters.el | |
| parent | d6f520752a77923a420f2ef894a6f2d26d29d7d0 (diff) | |
Add zig fmt support (#327)
Add support for the zig programming language using `zig fmt` for
`zig-mode` and `zig-ts-mode`.
---------
Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
Diffstat (limited to 'apheleia-formatters.el')
| -rw-r--r-- | apheleia-formatters.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apheleia-formatters.el b/apheleia-formatters.el index d1f3750..30597ae 100644 --- a/apheleia-formatters.el +++ b/apheleia-formatters.el @@ -215,7 +215,8 @@ (apheleia-formatters-indent nil "--indent"))) (yq-yaml . ("yq" "--prettyPrint" "--no-colors" "--no-doc" "--input-format" "yaml" "--output-format" "yaml" - (apheleia-formatters-indent nil "--indent")))) + (apheleia-formatters-indent nil "--indent"))) + (zig-fmt . ("zig" "fmt" "--stdin"))) "Alist of code formatting commands. The keys may be any symbols you want, and the values are shell commands, lists of strings and symbols, or a function symbol. @@ -375,7 +376,9 @@ rather than using this system." (web-mode . prettier) (yaml-mode . prettier-yaml) (yaml-ts-mode . prettier-yaml) - (yang-mode . pyang)) + (yang-mode . pyang) + (zig-mode . zig-fmt) + (zig-ts-mode . zig-fmt)) "Alist mapping major mode names to formatters to use in those modes. This determines what formatter to use in buffers without a setting for `apheleia-formatter'. The keys are major mode |
