aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMads Hougesen <madshougesen@gmail.com>2024-06-25 02:41:24 +0200
committerGitHub <noreply@github.com>2024-06-24 17:41:24 -0700
commit6856aed6d7abf94735739d44a459aef977c2ab44 (patch)
treef9b93a45181a781af767a9b1d7aa71bd23215c4d
parent1710c9db35d3c56d79c42e3bc8da6a52adf3b7ce (diff)
feat: support imba fmt (#475)
-rw-r--r--lua/conform/formatters/imba_fmt.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/conform/formatters/imba_fmt.lua b/lua/conform/formatters/imba_fmt.lua
new file mode 100644
index 0000000..680bb91
--- /dev/null
+++ b/lua/conform/formatters/imba_fmt.lua
@@ -0,0 +1,11 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://imba.io/",
+ description = "Code formatter for the Imba programming language.",
+ },
+ command = "imba",
+ stdin = false,
+ -- `-f` is used to ignore the git status of the file.
+ args = { "fmt", "-f", "$FILENAME" },
+}