diff options
author | Frederik Buchlák <30214087+fbuchlak@users.noreply.github.com> | 2023-10-27 04:32:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 21:32:00 -0700 |
commit | 4653408d5c270168e31ffd0585d1cf2de27fc827 (patch) | |
tree | 7d3037d714cb66f826fb7097f57719e37ee84a03 /lua/conform/formatters | |
parent | 278bcd8bf2017e187e963b515017341fdd87fe2f (diff) |
feat: add pretty-php (#161)
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r-- | lua/conform/formatters/pretty-php.lua | 14 |
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, +} |