Upgrade config

This commit is contained in:
Chris
2025-05-02 20:58:31 +01:00
parent 17e642dcd3
commit 6dfef7bd87
7 changed files with 124 additions and 38 deletions

View File

@@ -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',
},
}