aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters
diff options
context:
space:
mode:
authorNoah Zhu <virezox@gmail.com>2023-10-02 10:31:54 -0500
committerGitHub <noreply@github.com>2023-10-02 08:31:54 -0700
commite8877369df244515af20e18bf1307632fc638d2a (patch)
tree4cbb77ee4838e398deaa7e121b0a6277e5934456 /lua/conform/formatters
parentb56bba09a05f045ba266a10abd67279d81812c0b (diff)
feat: add 'google-java-format' formatter (#99)
Co-authored-by: Noah Zhu <noah@Noahs-M2-MacBook-Pro-16.local>
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r--lua/conform/formatters/google-java-format.lua9
1 files changed, 9 insertions, 0 deletions
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 = { "-" },
+}