From 15c4a0273bb5468004bb46f632dc5326bc5634d7 Mon Sep 17 00:00:00 2001 From: Frederik Buchlák <30214087+fbuchlak@users.noreply.github.com> Date: Sat, 3 Feb 2024 00:00:42 +0000 Subject: feat: add yq formatter (#288) --- lua/conform/formatters/yq.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/conform/formatters/yq.lua (limited to 'lua/conform') diff --git a/lua/conform/formatters/yq.lua b/lua/conform/formatters/yq.lua new file mode 100644 index 0000000..29cf9b4 --- /dev/null +++ b/lua/conform/formatters/yq.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/mikefarah/yq", + description = "YAML/JSON processor", + }, + command = "yq", + args = { "-P", "-" }, + stdin = true, +} -- cgit v1.2.3-70-g09d2