add pwa-node adapters and configs

This commit is contained in:
vladstojna 2023-04-22 22:29:27 +01:00 committed by vladstojna
parent 548340ad63
commit a76337f5fa
4 changed files with 40 additions and 0 deletions

View file

@ -1 +1,4 @@
require('custom.dap.adapters.cpptools')
require('custom.dap.adapters.codelldb')
require('custom.dap.adapters.lldb-vscode')
require('custom.dap.adapters.pwa-node')

View file

@ -0,0 +1,15 @@
local dap = require("dap")
dap.adapters["pwa-node"] = {
type = "server",
host = "127.0.0.1",
port = "${port}",
executable = {
command = "node",
args = {
vim.fn.stdpath("data") ..
"/mason/packages/js-debug-adapter/js-debug/src/dapDebugServer.js",
"${port}",
},
},
}