summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorHoang Nguyen <folliekazetani@protonmail.com>2024-01-06 15:29:44 +0000
committerGitHub <noreply@github.com>2024-01-06 07:29:44 -0800
commita4e84d56d5959dae685c5e22db202cd86b5b322b (patch)
tree0d39d545cfb2d5bef03374217f39ce31a2b5f34b /lua
parent24d13dc1e2101d5450bcf20972db445363b52685 (diff)
feat: add opa_fmt formatter (#267)
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/opa_fmt.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/conform/formatters/opa_fmt.lua b/lua/conform/formatters/opa_fmt.lua
new file mode 100644
index 0000000..b4f95dd
--- /dev/null
+++ b/lua/conform/formatters/opa_fmt.lua
@@ -0,0 +1,9 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://www.openpolicyagent.org/docs/latest/cli/#opa-fmt",
+ description = "Format Rego files using `opa fmt` command.",
+ },
+ command = "opa",
+ args = { "fmt" },
+}