aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--doc/conform.txt1
-rw-r--r--lua/conform/formatters/bpfmt.lua10
3 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index ae46051..f961d46 100644
--- a/README.md
+++ b/README.md
@@ -194,6 +194,7 @@ You can view this list in vim with `:help conform-formatters`
- [black](https://github.com/psf/black) - The uncompromising Python code formatter.
- [blade-formatter](https://github.com/shufo/blade-formatter) - An opinionated blade template formatter for Laravel that respects readability.
- [blue](https://github.com/grantjenks/blue) - The slightly less uncompromising Python code formatter.
+- [bpfmt](https://source.android.com/docs/setup/reference/androidbp) - The Android Blueprint file formatter.
- [buf](https://buf.build/docs/reference/cli/buf/format) - A new way of working with Protocol Buffers.
- [buildifier](https://github.com/bazelbuild/buildtools/tree/master/buildifier) - buildifier is a tool for formatting bazel BUILD and .bzl files with a standard convention.
- [cabal_fmt](https://hackage.haskell.org/package/cabal-fmt) - Format cabal files with cabal-fmt
diff --git a/doc/conform.txt b/doc/conform.txt
index 834822e..b2352eb 100644
--- a/doc/conform.txt
+++ b/doc/conform.txt
@@ -200,6 +200,7 @@ FORMATTERS *conform-formatter
`blade-formatter` - An opinionated blade template formatter for Laravel that
respects readability.
`blue` - The slightly less uncompromising Python code formatter.
+`bpfmt` - The Android Blueprint file formatter.
`buf` - A new way of working with Protocol Buffers.
`buildifier` - buildifier is a tool for formatting bazel BUILD and .bzl files
with a standard convention.
diff --git a/lua/conform/formatters/bpfmt.lua b/lua/conform/formatters/bpfmt.lua
new file mode 100644
index 0000000..5f7c66d
--- /dev/null
+++ b/lua/conform/formatters/bpfmt.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://source.android.com/docs/setup/reference/androidbp",
+ description = "Android Blueprint file formatter.",
+ },
+ command = "bpfmt",
+ args = { "-w", "$FILENAME" },
+ stdin = false,
+}