1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00
dotfiles/nvim/lua/user/plugins/lang/php/dap.lua

37 lines
1.1 KiB
Lua

local mason = require('user.utils.mason')
return {
mason.ensure_installed('php-debug-adapter'),
{
"mfussenegger/nvim-dap",
optional = true,
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}"
}
}
}
}
}
},
}