diff options
Diffstat (limited to 'lua/conform')
-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, +} |