From 8618b74356e3ab036967639e580df5b93005d4ae Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 25 Jan 2022 18:22:31 +0100 Subject: WIP migrating from vimspector to dap --- lua/alpha/init.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'lua/alpha/init.lua') diff --git a/lua/alpha/init.lua b/lua/alpha/init.lua index 9b50ae2..296b38c 100644 --- a/lua/alpha/init.lua +++ b/lua/alpha/init.lua @@ -16,3 +16,23 @@ vim.api.nvim_set_keymap('n', 'rs', ':lua require(\'alpha.refactor\').set vim.api.nvim_set_keymap('n', 'rn', ':lua require(\'alpha.refactor\').new_property()', {noremap = true}) vim.api.nvim_set_keymap('n', 'x', ':call alpha#save_and_exec()', {noremap = true}) + +local dap = require('dap') + +dap.adapters.php = { + type = 'executable', + command = 'node', + args = { '/home/adalessa/repos/vscode-php-debug/out/phpDebug.js' } +} + +dap.configurations.php = { + { + type = 'php', + request = 'launch', + name = 'Listen for Xdebug', + port = 9003, + pathMappings = { + ['/app'] = vim.fn.getcwd() + } + } +} -- cgit v1.2.3