From 2b73887fd75e1f6efc352cec6bd7e39157c3732e Mon Sep 17 00:00:00 2001 From: buz <852136+buztard@users.noreply.github.com> Date: Thu, 14 Sep 2023 19:51:40 +0200 Subject: feat: add buf as protobuf linter (#43) --- lua/conform/formatters/buf.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/conform/formatters/buf.lua (limited to 'lua/conform/formatters') 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" }), +} -- cgit v1.2.3-70-g09d2