mirror of
https://github.com/macocianradu/setup.git
synced 2026-03-18 21:00:04 +00:00
added js dap config
This commit is contained in:
@@ -16,6 +16,18 @@ dap.listeners.after.event_exited["dapui_config"] = function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
require("dap-python").setup("~/Projects/odoo/venv/bin/python3")
|
require("dap-python").setup("~/Projects/odoo/venv/bin/python3")
|
||||||
|
dap.adapters['pwa-chrome'] = {
|
||||||
|
type = 'server',
|
||||||
|
host = 'localhost',
|
||||||
|
port = '${port}',
|
||||||
|
executable = {
|
||||||
|
command = 'node',
|
||||||
|
args = {
|
||||||
|
vim.fn.stdpath('data') .. '/mason/packages/js-debug-adapter/js-debug/src/dapDebugServer.js',
|
||||||
|
'${port}',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>5", function() dap.continue() end)
|
vim.keymap.set("n", "<leader>5", function() dap.continue() end)
|
||||||
vim.keymap.set("n", "<leader>6", function() dap.step_over() end)
|
vim.keymap.set("n", "<leader>6", function() dap.step_over() end)
|
||||||
@@ -42,3 +54,17 @@ dap.configurations.python = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dap.configurations.javascript = {
|
||||||
|
{
|
||||||
|
type = "pwa-chrome",
|
||||||
|
request = "attach",
|
||||||
|
name = "Launch Odoo JS Tour",
|
||||||
|
program = "${file}",
|
||||||
|
cwd = vim.fn.getcwd(),
|
||||||
|
port = 9222,
|
||||||
|
webRoot = '${workspaceFolder}',
|
||||||
|
sourceMaps = true,
|
||||||
|
protocol = 'inspector',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"nvim-dap": { "branch": "master", "commit": "881f7dc17c0b4204a1d844732f95539575350e5b" },
|
"nvim-dap": { "branch": "master", "commit": "881f7dc17c0b4204a1d844732f95539575350e5b" },
|
||||||
"nvim-dap-python": { "branch": "master", "commit": "64652d1ae1db80870d9aac7132d76e37acd86a26" },
|
"nvim-dap-python": { "branch": "master", "commit": "64652d1ae1db80870d9aac7132d76e37acd86a26" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
|
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "cc2f5f2fa28d240574808e78847978ed6ef20d2a" },
|
"nvim-lspconfig": { "branch": "master", "commit": "ac98db2f9f06a56498ec890a96928774eae412c3" },
|
||||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||||
"nvim-scrollbar": { "branch": "main", "commit": "5b103ef0fd2e8b9b4be3878ed38d224522192c6c" },
|
"nvim-scrollbar": { "branch": "main", "commit": "5b103ef0fd2e8b9b4be3878ed38d224522192c6c" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
|
|||||||
Reference in New Issue
Block a user