More changes

This commit is contained in:
Chris
2025-04-17 08:53:20 +01:00
parent c7d39fe79c
commit 62b3b156fa
5 changed files with 132 additions and 11 deletions

View File

@@ -1,3 +1,4 @@
require('helpers').edit_cf('pd', '/lua/plugins/debug.lua')
-- debug.lua
--
-- Shows how to use the DAP plugin to debug your code.
@@ -96,6 +97,26 @@ return {
},
}
dap.adapters.php = {
type = 'executable',
command = 'node',
args = { '/Users/chris/.local/src/vscode-php-debug/out/phpDebug.js' },
}
dap.configurations.php = {
{
type = 'php',
request = 'launch',
name = 'Listen for XDebug',
port = 9003,
log = true,
pathMappings = {
['/var/www/html/'] = vim.fn.getcwd() .. '/',
},
hostname = '0.0.0.0',
},
}
-- Dap UI setup
-- For more information, see |:help nvim-dap-ui|
dapui.setup {