diff options
author | giskard <rtgiskard@gmail.com> | 2024-06-06 14:52:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 23:52:53 -0700 |
commit | 5e7a000e4f239b56077e5a38680c5e9a0bf60e6a (patch) | |
tree | e081014638aca9c71e5668313b6d539616da50b8 /lua/conform/formatters/d2.lua | |
parent | 44879ffd0268ba931532537b1ee44ed77cd90a5d (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/conform/formatters/d2.lua')
-rw-r--r-- | lua/conform/formatters/d2.lua | 9 |
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", "-" }, +} |