Upgrade config
This commit is contained in:
@@ -87,7 +87,28 @@ return {
|
||||
|
||||
-- You can provide additional configuration to the handlers,
|
||||
-- see mason-nvim-dap README for more information
|
||||
handlers = {},
|
||||
handlers = {
|
||||
function(config)
|
||||
require('mason-nvim-dap').default_setup(config)
|
||||
end,
|
||||
php = function(config)
|
||||
config.configurations = {
|
||||
{
|
||||
type = 'php',
|
||||
request = 'launch',
|
||||
name = 'Listen for XDebug',
|
||||
port = 9003,
|
||||
log = true,
|
||||
-- pathMappings = {
|
||||
-- ['/var/www/html/'] = vim.fn.getcwd() .. '/',
|
||||
-- },
|
||||
hostname = '0.0.0.0',
|
||||
},
|
||||
}
|
||||
|
||||
require('mason-nvim-dap').default_setup(config)
|
||||
end,
|
||||
},
|
||||
|
||||
-- You'll need to check that you have the required things installed
|
||||
-- online, please don't ask me how to install them :)
|
||||
@@ -110,9 +131,9 @@ return {
|
||||
name = 'Listen for XDebug',
|
||||
port = 9003,
|
||||
log = true,
|
||||
pathMappings = {
|
||||
['/var/www/html/'] = vim.fn.getcwd() .. '/',
|
||||
},
|
||||
-- pathMappings = {
|
||||
-- ['/var/www/html/'] = vim.fn.getcwd() .. '/',
|
||||
-- },
|
||||
hostname = '0.0.0.0',
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user