From 4653408d5c270168e31ffd0585d1cf2de27fc827 Mon Sep 17 00:00:00 2001 From: Frederik Buchlák <30214087+fbuchlak@users.noreply.github.com> Date: Fri, 27 Oct 2023 04:32:00 +0000 Subject: feat: add pretty-php (#161) --- lua/conform/formatters/pretty-php.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lua/conform/formatters/pretty-php.lua (limited to 'lua/conform') 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, +} -- cgit v1.2.3-70-g09d2