aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform
diff options
context:
space:
mode:
authorFrederik Buchlák <30214087+fbuchlak@users.noreply.github.com>2024-02-03 00:00:42 +0000
committerGitHub <noreply@github.com>2024-02-02 16:00:42 -0800
commit15c4a0273bb5468004bb46f632dc5326bc5634d7 (patch)
tree3df3a1a78ef4a60e994bdff0b1e00d8d9bb50484 /lua/conform
parent4588008a7c5b57fbff97fdfb529c059235cdc7ee (diff)
feat: add yq formatter (#288)
Diffstat (limited to 'lua/conform')
-rw-r--r--lua/conform/formatters/yq.lua10
1 files changed, 10 insertions, 0 deletions
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,
+}