📁 files(nvim): php extra is now an extended from the php extra of lazyvim
This commit is contained in:
parent
af1843d62c
commit
4e0f983102
2 changed files with 32 additions and 57 deletions
32
.config/nvim/lua/plugins/extras/lang/web/php-extended.lua
Normal file
32
.config/nvim/lua/plugins/extras/lang/web/php-extended.lua
Normal 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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -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",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue