Skip to content

Commit

Permalink
feat: add air format
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed Feb 10, 2025
1 parent 363243c commit d4f3e89
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lua/conform/formatters/air.lua
Original file line number Diff line number Diff line change
@@ -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",
}),
}

0 comments on commit d4f3e89

Please sign in to comment.