mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 19:30:01 +02:00
38 lines
1.2 KiB
Lua
38 lines
1.2 KiB
Lua
local mason = require('user.utils.mason')
|
|
|
|
return {
|
|
mason.ensure_installed('php-debug-adapter'),
|
|
{
|
|
"mfussenegger/nvim-dap",
|
|
optional = true,
|
|
ft = "php",
|
|
opts = {
|
|
php = {
|
|
adapter = {
|
|
type = 'executable',
|
|
command = mason.binary('php-debug-adapter'),
|
|
},
|
|
configurations = {
|
|
{
|
|
name = "PHP: Listen for Xdebug",
|
|
port = 9003,
|
|
request = "launch",
|
|
type = "php",
|
|
breakpoints = {
|
|
exception = {
|
|
Notice = false,
|
|
Warning = false,
|
|
Error = false,
|
|
Exception = false,
|
|
["*"] = false,
|
|
},
|
|
},
|
|
pathMappings = {
|
|
["/app"] = "${workspaceFolder}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
}
|