diff --git a/lua/conform/formatters/air.lua b/lua/conform/formatters/air.lua new file mode 100644 index 00000000..ac755790 --- /dev/null +++ b/lua/conform/formatters/air.lua @@ -0,0 +1,15 @@ +local util = require("conform.util") +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/posit-dev/air", + description = "R formatter and language server.", + }, + command = "air", + args = { "format", "$FILENAME" }, + stdin = false, + cwd = util.root_file({ + "air.toml", + ".air.toml", + }), +}