Removed dap
This commit is contained in:
@@ -1,42 +0,0 @@
|
|||||||
return {
|
|
||||||
"rcarriga/nvim-dap-ui",
|
|
||||||
dependencies = "mfussenegger/nvim-dap",
|
|
||||||
config = function()
|
|
||||||
local dap = require("dap")
|
|
||||||
local dapui = require("dapui")
|
|
||||||
|
|
||||||
dap.adapters["pwa-node"] = {
|
|
||||||
type = "server",
|
|
||||||
host = "127.0.0.1",
|
|
||||||
port = "8123",
|
|
||||||
executable = {
|
|
||||||
command = "js-debug-adapter",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, lang in ipairs({ "javascript", "typescript" }) do
|
|
||||||
dap.configurations[lang] = {
|
|
||||||
{
|
|
||||||
type = "pwa-node",
|
|
||||||
request = "launch",
|
|
||||||
name = "Launch file",
|
|
||||||
program = "${file}",
|
|
||||||
cwd = "${workspaceFolder}",
|
|
||||||
runtimeExecutable = "node",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
|
||||||
dapui.open()
|
|
||||||
end
|
|
||||||
dap.listeners.before.event_terminated["dapui_config"] = function()
|
|
||||||
dapui.close()
|
|
||||||
end
|
|
||||||
dap.listeners.before.event_exited["dapui_config"] = function()
|
|
||||||
dapui.close()
|
|
||||||
end
|
|
||||||
|
|
||||||
dapui.setup()
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user