mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
use php-cs-fixer for formatting
This commit is contained in:
parent
676cc45b33
commit
ee5fb7c7b5
1 changed files with 3 additions and 3 deletions
|
|
@ -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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue