aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorFrederik Buchlák <30214087+fbuchlak@users.noreply.github.com>2023-10-27 04:32:00 +0000
committerGitHub <noreply@github.com>2023-10-26 21:32:00 -0700
commit4653408d5c270168e31ffd0585d1cf2de27fc827 (patch)
tree7d3037d714cb66f826fb7097f57719e37ee84a03 /lua
parent278bcd8bf2017e187e963b515017341fdd87fe2f (diff)
feat: add pretty-php (#161)
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/pretty-php.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/conform/formatters/pretty-php.lua b/lua/conform/formatters/pretty-php.lua
new file mode 100644
index 0000000..bf902dd
--- /dev/null
+++ b/lua/conform/formatters/pretty-php.lua
@@ -0,0 +1,14 @@
+local util = require("conform.util")
+
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/lkrms/pretty-php",
+ description = "The opinionated PHP code formatter",
+ },
+ command = util.find_executable({
+ "vendor/bin/pretty-php",
+ }, "pretty-php"),
+ args = { "$FILENAME" },
+ stdin = false,
+}