aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/d2.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/conform/formatters/d2.lua b/lua/conform/formatters/d2.lua
new file mode 100644
index 0000000..2858e80
--- /dev/null
+++ b/lua/conform/formatters/d2.lua
@@ -0,0 +1,9 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/terrastruct/d2",
+ description = "D2 is a modern diagram scripting language that turns text to diagrams.",
+ },
+ command = "d2",
+ args = { "fmt", "-" },
+}