summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMads Hougesen <madshougesen@gmail.com>2024-06-25 02:30:07 +0200
committerGitHub <noreply@github.com>2024-06-24 17:30:07 -0700
commitb67f2732a2d0276454c7623204741d908de5358a (patch)
tree7a54fe4060ae22fa0bcae177caf35cc1e437a0ba
parentb23b548461b9636a4ba28dce8f06807cd72e9336 (diff)
feat: support dcm fix and dcm format (#471)
-rw-r--r--lua/conform/formatters/dcm_fix.lua10
-rw-r--r--lua/conform/formatters/dcm_format.lua10
2 files changed, 20 insertions, 0 deletions
diff --git a/lua/conform/formatters/dcm_fix.lua b/lua/conform/formatters/dcm_fix.lua
new file mode 100644
index 0000000..1f0426e
--- /dev/null
+++ b/lua/conform/formatters/dcm_fix.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://dcm.dev/docs/cli/formatting/fix/",
+ description = "Fixes issues produced by dcm analyze, dcm check-unused-code or dcm check-dependencies commands.",
+ },
+ command = "dcm",
+ args = { "fix", "$FILENAME" },
+ stdin = false,
+}
diff --git a/lua/conform/formatters/dcm_format.lua b/lua/conform/formatters/dcm_format.lua
new file mode 100644
index 0000000..f2af0ac
--- /dev/null
+++ b/lua/conform/formatters/dcm_format.lua
@@ -0,0 +1,10 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://dcm.dev/docs/cli/formatting/format/",
+ description = "Formats *.dart files.",
+ },
+ command = "dcm",
+ args = { "format", "$FILENAME" },
+ stdin = false,
+}