diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-01-25 18:22:31 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-01-25 18:22:31 +0100 |
| commit | 8618b74356e3ab036967639e580df5b93005d4ae (patch) | |
| tree | c6cbe3d5fe088a5bb40dd4169cbe8c91fb53ff5f /lua/alpha/init.lua | |
| parent | 92988f8b38c11e4c9be7cb34411ab46bca636717 (diff) | |
| download | nvim-conf-8618b74356e3ab036967639e580df5b93005d4ae.tar.gz nvim-conf-8618b74356e3ab036967639e580df5b93005d4ae.zip | |
WIP migrating from vimspector to dap
Diffstat (limited to 'lua/alpha/init.lua')
| -rw-r--r-- | lua/alpha/init.lua | 20 |
1 files changed, 20 insertions, 0 deletions
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', '<leader>rs', ':lua require(\'alpha.refactor\').set vim.api.nvim_set_keymap('n', '<leader>rn', ':lua require(\'alpha.refactor\').new_property()<cr>', {noremap = true}) vim.api.nvim_set_keymap('n', '<leader><leader>x', ':call alpha#save_and_exec()<cr>', {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() + } + } +} |