From 7b9c81e39680dd1974028f47b3a3843d83328e72 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Mon, 25 Jul 2022 09:13:24 +0200 Subject: Fix debug adapter for php since was breaking due the path use --- lua/alpha/dap.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua index 8145f4b..1ee598a 100644 --- a/lua/alpha/dap.lua +++ b/lua/alpha/dap.lua @@ -1,6 +1,7 @@ local dap, dapui, dap_go = require("dap"), require("dapui"), require("dap-go") require("nvim-dap-virtual-text").setup() +-- dap.set_log_level('TRACE') dapui.setup({ icons = { expanded = "▾", collapsed = "▸" }, @@ -29,12 +30,15 @@ dap_go.setup() vim.fn.sign_define("DapBreakpoint", { text = "ß", texthl = "", linehl = "", numhl = "" }) +-- TODO replace with mason for check if installed and get the path +-- the binary does not work +local php_debug_adapter = vim.fn.stdpath("data") .. "/mason/packages/php-debug-adapter/extension/out/phpDebug.js" + dap.adapters.php = { type = "executable", command = "node", - args = { "php-debug-adapter" }, + args = { php_debug_adapter }, } - dap.configurations.php = { { type = "php", -- cgit v1.2.3