diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | lua/conform/formatters/google-java-format.lua | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -192,6 +192,7 @@ To view configured and available formatters, as well as to see the log file, run - [gofumpt](https://github.com/mvdan/gofumpt) - Enforce a stricter format than gofmt, while being backwards compatible. That is, gofumpt is happy with a subset of the formats that gofmt is happy with. - [goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports) - Updates your Go import lines, adding missing ones and removing unreferenced ones. - [golines](https://github.com/segmentio/golines) - A golang formatter that fixes long lines +- [google-java-format](https://github.com/google/google-java-format) - Reformats Java source code according to Google Java Style. - [htmlbeautifier](https://github.com/threedaymonk/htmlbeautifier) - A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates. - [indent](https://www.gnu.org/software/indent/) - GNU Indent - [injected](lua/conform/formatters/injected.lua) - Format treesitter injected languages. diff --git a/lua/conform/formatters/google-java-format.lua b/lua/conform/formatters/google-java-format.lua new file mode 100644 index 0000000..8bcb82a --- /dev/null +++ b/lua/conform/formatters/google-java-format.lua @@ -0,0 +1,9 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/google/google-java-format", + description = "Reformats Java source code according to Google Java Style.", + }, + command = "google-java-format", + args = { "-" }, +} |