From 6856aed6d7abf94735739d44a459aef977c2ab44 Mon Sep 17 00:00:00 2001 From: Mads Hougesen Date: Tue, 25 Jun 2024 02:41:24 +0200 Subject: feat: support imba fmt (#475) --- lua/conform/formatters/imba_fmt.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/conform/formatters/imba_fmt.lua (limited to 'lua/conform/formatters/imba_fmt.lua') 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" }, +} -- cgit v1.2.3-70-g09d2