📁 files(nvim): php extra is now an extended from the php extra of lazyvim

This commit is contained in:
Sergio Laín 2024-06-11 11:51:11 +02:00
parent af1843d62c
commit 4e0f983102
No known key found for this signature in database
GPG key ID: FB00AF7015FFE76B
2 changed files with 32 additions and 57 deletions

View file

@ -0,0 +1,32 @@
return {
{ import = "lazyvim.plugins.extras.lang.php" },
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"phpdoc",
},
},
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"olimorris/neotest-phpunit",
},
opts = {
adapters = {
["neotest-phpunit"] = {},
},
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
opts = {
ensure_installed = {
"php",
},
},
},
}

View file

@ -1,57 +0,0 @@
return {
{ import = "lazyvim.plugins.extras.lang.php" },
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"phpdoc",
},
},
},
{
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"php-cs-fixer",
"phpcs",
},
},
},
{
"mfussenegger/nvim-lint",
opts = function(_, opts)
opts.linters_by_ft.php = opts.linters_by_ft.php or {}
table.insert(opts.linters_by_ft.php, "phpcs")
return opts
end,
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"olimorris/neotest-phpunit",
},
opts = {
adapters = {
["neotest-phpunit"] = {},
},
},
},
{
"stevearc/conform.nvim",
opts = function(_, opts)
opts.formatters_by_ft.php = opts.formatters_by_ft.php or {}
table.insert(opts.formatters_by_ft.php, "php_cs_fixer")
return opts
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
opts = {
ensure_installed = {
"php",
},
},
},
}