diff options
author | Damien Deville <damien@ddeville.me> | 2023-11-25 01:30:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-25 01:30:49 -0800 |
commit | e478834227e0958e21a54f31c9cd896a3a8bdde0 (patch) | |
tree | 80572f7bece6af48fd362639da1a432021ed1c33 | |
parent | fd32ed2dc192ec656a0536699336cd2fe3eb543f (diff) |
feat: add support for buildifier (#216)
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | lua/conform/formatters/buildifier.lua | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -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", +} |