diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-07-25 09:13:24 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-07-25 09:13:24 +0200 |
| commit | 7b9c81e39680dd1974028f47b3a3843d83328e72 (patch) | |
| tree | 0dd561e6227fd50d4efb1feaf497e323b20be1dc /lua | |
| parent | 1258338e628eff482b873cdb243ef7fb77702836 (diff) | |
| download | nvim-conf-7b9c81e39680dd1974028f47b3a3843d83328e72.tar.gz nvim-conf-7b9c81e39680dd1974028f47b3a3843d83328e72.zip | |
Fix debug adapter for php since was breaking due the path use
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/alpha/dap.lua | 8 |
1 files changed, 6 insertions, 2 deletions
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", |