From ee5fb7c7b563a8b04ed79669388de27c9373d1ce Mon Sep 17 00:00:00 2001 From: muneebusmani Date: Sun, 9 Jun 2024 19:14:36 +0500 Subject: [PATCH] use php-cs-fixer for formatting --- lua/lazyvim/plugins/extras/lang/php.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/php.lua b/lua/lazyvim/plugins/extras/lang/php.lua index 439e523d..58d14e91 100644 --- a/lua/lazyvim/plugins/extras/lang/php.lua +++ b/lua/lazyvim/plugins/extras/lang/php.lua @@ -41,7 +41,7 @@ return { opts = function(_, opts) local nls = require("null-ls") opts.sources = opts.sources or {} - table.insert(opts.sources, nls.builtins.formatting.pretty_php) + table.insert(opts.sources, nls.builtins.formatting.phpcsfixer) end, }, { @@ -49,11 +49,11 @@ return { optional = true, dependencies = { "williamboman/mason.nvim", - opts = { ensure_installed = { "pretty-php" } }, + opts = { ensure_installed = { "php-cs-fixer" } }, }, opts = { formatters_by_ft = { - php = { "pretty-php" }, + php = { "php-cs-fixer" }, }, }, },