From cde37f523581cecfe8cd708f964f2d34934c6907 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 24 Jul 2022 20:46:17 +0200 Subject: Update config to mason, lsp lines, remove old plugins --- lua/alpha/dap.lua | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'lua/alpha/dap.lua') 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 -- cgit v1.2.3