diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-01-26 06:36:43 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-01-26 06:36:43 +0100 |
| commit | 3a0015d1a03febee0af2ea64ec23645f8e456f76 (patch) | |
| tree | 9afb27173b26aaa20d729b429aedad19c78d6740 /lua/alpha/dap.lua | |
| parent | d45b90e28752b85c5973b0d8b7d1103812e7f675 (diff) | |
| download | nvim-conf-3a0015d1a03febee0af2ea64ec23645f8e456f76.tar.gz nvim-conf-3a0015d1a03febee0af2ea64ec23645f8e456f76.zip | |
use env variable for the home
Diffstat (limited to 'lua/alpha/dap.lua')
| -rw-r--r-- | lua/alpha/dap.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua index f7f3890..73eaf56 100644 --- a/lua/alpha/dap.lua +++ b/lua/alpha/dap.lua @@ -5,7 +5,7 @@ local dap = require('dap') dap.adapters.php = { type = 'executable', command = 'node', - args = { '/home/alpha/repos/vscode-php-debug/out/phpDebug.js' } + args = { os.getenv('HOME') .. '/repos/vscode-php-debug/out/phpDebug.js' } } -- TODO make 'mapping' configurateble @@ -16,7 +16,8 @@ dap.configurations.php = { name = 'Listen for Xdebug', port = 9003, pathMappings = { - ['/var/www/html'] = vim.fn.getcwd() + ['/var/www/html'] = vim.fn.getcwd(), + ['/app'] = vim.fn.getcwd(), } } } |