fix(dap): make sure mason-dap is loaded after initializing dap. See #3663

This commit is contained in:
Folke Lemaitre
2024-06-15 10:19:46 +02:00
parent 6c5be2ea44
commit e0e1ab01af
2 changed files with 31 additions and 35 deletions

View File

@ -30,12 +30,6 @@ return {
{
"mfussenegger/nvim-dap",
optional = true,
dependencies = {
"williamboman/mason.nvim",
opts = { ensure_installed = {
"php-debug-adapter",
} },
},
opts = function()
local dap = require("dap")
local path = require("mason-registry").get_package("php-debug-adapter"):get_install_path()