aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--lua/conform/formatters/buildifier.lua8
2 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4f0cd08..2a4cd8a 100644
--- a/README.md
+++ b/README.md
@@ -189,6 +189,7 @@ You can view this list in vim with `:help conform-formatters`
- [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.
- [buf](https://buf.build/docs/reference/cli/buf/format) - A new way of working with Protocol Buffers.
+- [buildifier](https://github.com/bazelbuild/buildtools/blob/master/buildifier) - Buildifier is a tool for formatting bazel BUILD and .bzl files with a standard convention.
- [cbfmt](https://github.com/lukas-reineke/cbfmt) - A tool to format codeblocks inside markdown and org documents.
- [clang_format](https://www.kernel.org/doc/html/latest/process/clang-format.html) - Tool to format C/C++/… code according to a set of rules and heuristics.
- [cljstyle](https://github.com/greglook/cljstyle) - Formatter for Clojure code.
diff --git a/lua/conform/formatters/buildifier.lua b/lua/conform/formatters/buildifier.lua
new file mode 100644
index 0000000..cd5e5cb
--- /dev/null
+++ b/lua/conform/formatters/buildifier.lua
@@ -0,0 +1,8 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/bazelbuild/buildtools/tree/master/buildifier",
+ description = "buildifier is a tool for formatting bazel BUILD and .bzl files with a standard convention.",
+ },
+ command = "buildifier",
+}