stevearc / conform.nvim

Lightweight yet powerful formatter plugin for Neovim
MIT License
2.89k stars 150 forks source link

fix: add cwd to honor project php-cs-fixer #325

Closed zerodahero closed 6 months ago

zerodahero commented 6 months ago

This adds the cwd option into the default php-cs-fixer options in order to honor project-level configuration.

composer.json should be the "safest" project root option here, since if a project doesn't have a .php-cs-fixer.dist.php or similar config file, it looks like we may accidentally use a parent config instead of the default config (currently used with these conform settings), which I believe would be different than typical php-cs-fixer behavior (i.e. use project-level config, or default)

stevearc commented 6 months ago

LGTM thanks!