From aed0eca8cec73bd6cd42efb35850d1c975c4d1ab Mon Sep 17 00:00:00 2001 From: Taken Date: Thu, 26 Sep 2024 11:58:24 +0200 Subject: [PATCH] Updating dap --- lua/taken/plugins/dap.lua | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/lua/taken/plugins/dap.lua b/lua/taken/plugins/dap.lua index bdffd8c..02dd164 100644 --- a/lua/taken/plugins/dap.lua +++ b/lua/taken/plugins/dap.lua @@ -17,23 +17,12 @@ return { command = "js-debug-adapter", }, } - dap.configurations.javascript = { - { - type = "pwa-node", - request = "launch", - name = "Launch file", - program = "${file}", - cwd = "${workspaceFolder}", - }, - } dap.configurations.typescript = { { + name = "Attach to process (global nvim)", type = "pwa-node", - request = "launch", - name = "Launch file", - program = "${file}", - cwd = "${workspaceFolder}", - runtimeExecutable = "tsx", + request = "attach", + port = 9229, }, }