diff options
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r-- | lua/conform/formatters/buf.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/conform/formatters/buf.lua b/lua/conform/formatters/buf.lua new file mode 100644 index 0000000..bb64c26 --- /dev/null +++ b/lua/conform/formatters/buf.lua @@ -0,0 +1,11 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://buf.build/docs/lint/overview", + description = "A new way of working with Protocol Buffers", + }, + command = "buf", + args = { "format", "-w", "$FILENAME" }, + stdin = false, + cwd = require("conform.util").root_file({ "buf.yaml" }), +} |