Add support for remaining treesit modes built into Emacs29 (#151)

* Add support for rust-ts-mode

* Add new builtin go-, ruby- and yaml- treesit-modes

Modes taken from NEWS.29 emacs29 release notes

* Add new PR number to changelog entry for ts-modes
This commit is contained in:
Michael Eliachevitch 2023-01-27 04:14:55 +01:00 committed by GitHub
parent 93d2b30dd0
commit 2520f14e1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -21,7 +21,7 @@ The format is based on [Keep a Changelog].
### Enhancements
* Emacs 29's tree-sitter-based major modes have been added to
`apheleia-mode-alist` ([#145], [#148]).
`apheleia-mode-alist` ([#145], [#148], [#151]).
### Bugs fixed
* If a formatter exited with a zero exit code when being killed by a

View file

@ -1143,6 +1143,8 @@ function: %s" command)))
(elm-mode . elm-format)
(fish-mode . fish-indent)
(go-mode . gofmt)
(go-mod-ts-mode . gofmt)
(go-ts-mode . gofmt)
(graphql-mode . prettier-graphql)
(haskell-mode . brittany)
(html-mode . prettier-html)
@ -1160,8 +1162,10 @@ function: %s" command)))
(python-mode . black)
(python-ts-mode . black)
(ruby-mode . prettier-ruby)
(ruby-ts-mode . prettier-ruby)
(rustic-mode . rustfmt)
(rust-mode . rustfmt)
(rust-ts-mode . rustfmt)
(scss-mode . prettier-scss)
(terraform-mode . terraform)
(TeX-latex-mode . latexindent)
@ -1171,7 +1175,8 @@ function: %s" command)))
(typescript-mode . prettier-typescript)
(typescript-ts-mode . prettier-typescript)
(web-mode . prettier)
(yaml-mode . prettier-yaml))
(yaml-mode . prettier-yaml)
(yaml-ts-mode . prettier-yaml))
"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