30 lines
625 B
Lua
30 lines
625 B
Lua
-- Debug Adapter Protocol client implementation for Neovim
|
|
return {
|
|
'mfussenegger/nvim-dap',
|
|
enabled = true,
|
|
lazy = true,
|
|
config = function()
|
|
local dap = require('dap')
|
|
|
|
-- Installing debuggers for C, Rust and C++
|
|
dap.configurations.cpp = {}
|
|
|
|
-- Initializing PHP debugger adapter
|
|
dap.adapters.php = {
|
|
type = 'executable',
|
|
command = 'node',
|
|
args = { os.getenv('HOME') .. '/vscode-php-debug/out/phpDebug.js' }
|
|
}
|
|
|
|
-- Installing PHP debugger
|
|
dap.configurations.php = {
|
|
{
|
|
type = 'php',
|
|
request = 'launch',
|
|
name = 'Listen for Xdebug',
|
|
port = 9003
|
|
}
|
|
}
|
|
end
|
|
}
|