aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorgiskard <rtgiskard@gmail.com>2024-06-06 14:52:53 +0800
committerGitHub <noreply@github.com>2024-06-05 23:52:53 -0700
commit5e7a000e4f239b56077e5a38680c5e9a0bf60e6a (patch)
treee081014638aca9c71e5668313b6d539616da50b8 /lua
parent44879ffd0268ba931532537b1ee44ed77cd90a5d (diff)
feat: add support for d2 (#445)
* feat: add support for d2 * doc: normalize description --------- Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
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", "-" },
+}