aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-01-26 06:36:43 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-01-26 06:36:43 +0100
commit3a0015d1a03febee0af2ea64ec23645f8e456f76 (patch)
tree9afb27173b26aaa20d729b429aedad19c78d6740
parentd45b90e28752b85c5973b0d8b7d1103812e7f675 (diff)
downloadnvim-conf-3a0015d1a03febee0af2ea64ec23645f8e456f76.tar.gz
nvim-conf-3a0015d1a03febee0af2ea64ec23645f8e456f76.zip
use env variable for the home
-rw-r--r--lua/alpha/dap.lua5
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(),
}
}
}