Skip to content

Commit

Permalink
fix: conform MR (#321)
Browse files Browse the repository at this point in the history
* fix: conform MR

* Format with stylua

---------

Co-authored-by: n3wborn <[email protected]>
  • Loading branch information
n3wborn and n3wborn authored Dec 22, 2023
1 parent 0cccdb2 commit 3195a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/plugins/conform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ return {
end,
},
config = function(_, opts)
require('conform.formatters.php_cs_fixer').args = function(ctx)
local cs_fixer = require('conform.formatters.php_cs_fixer')
cs_fixer.args = function(self, ctx)
local args = { 'fix', '$FILENAME', '--quiet', '--no-interaction', '--using-cache=no' }
local found = vim.fs.find('.php-cs-fixer.php', { upward = true, path = ctx.dirname })[1]

if found then
vim.list_extend(args, { '--config=' .. found })
else
Expand Down

0 comments on commit 3195a02

Please sign in to comment.