diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-07-24 20:46:17 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-07-24 20:46:35 +0200 |
| commit | cde37f523581cecfe8cd708f964f2d34934c6907 (patch) | |
| tree | 9a00b820274677763b56fb68c648647d10d0e295 /lua/alpha/dap.lua | |
| parent | 4acd2329872ccc4a2c32b2777201461d254098b4 (diff) | |
| download | nvim-conf-cde37f523581cecfe8cd708f964f2d34934c6907.tar.gz nvim-conf-cde37f523581cecfe8cd708f964f2d34934c6907.zip | |
Update config to mason, lsp lines, remove old plugins
Diffstat (limited to 'lua/alpha/dap.lua')
| -rw-r--r-- | lua/alpha/dap.lua | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua index 18c792e..78a907d 100644 --- a/lua/alpha/dap.lua +++ b/lua/alpha/dap.lua @@ -1,4 +1,4 @@ -local dap, dapui, dap_install, dap_go = require("dap"), require("dapui"), require("dap-install"), require("dap-go") +local dap, dapui, dap_go = require("dap"), require("dapui"), require("dap-go") require("nvim-dap-virtual-text").setup() @@ -30,22 +30,24 @@ dap_go.setup() vim.fn.sign_define("DapBreakpoint", { text = "ß", texthl = "", linehl = "", numhl = "" }) -dap_install.config("php", { - configurations = { - { - type = "php", - request = "launch", - name = "Listen for Xdebug", - port = 9003, - pathMappings = function() - local sail = vim.call("composer#query", "require-dev.laravel/sail") - if sail == "" then - return { ["/app"] = vim.fn.getcwd() } - end - return { ["/var/www/html"] = vim.fn.getcwd() } - end, - }, - }, +dap.adapters.php = { + type = "executable", + command = "node", + args = { "php-debug-adapter" }, +} + +dap.configurations.php({ + type = "php", + request = "launch", + name = "Listen for Xdebug", + port = 9003, + pathMappings = function() + local sail = vim.call("composer#query", "require-dev.laravel/sail") + if sail == "" then + return { ["/app"] = vim.fn.getcwd() } + end + return { ["/var/www/html"] = vim.fn.getcwd() } + end, }) -- Events Listeners |