diff options
Diffstat (limited to 'lua/plugins/dap.lua')
| -rw-r--r-- | lua/plugins/dap.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua index d858760..9b3f0a9 100644 --- a/lua/plugins/dap.lua +++ b/lua/plugins/dap.lua @@ -52,6 +52,26 @@ dap.configurations.cpp = { dap.configurations.c = dap.configurations.cpp dap.configurations.rust = dap.configurations.cpp +-- javascript +dap.adapters.node2 = { + type = 'executable', + command = 'node-debug2-adapter', + args = {}, +} + +dap.configurations.javascript = { + { + name = 'Launch', + type = 'node2', + request = 'attach', + program = '${file}', + cwd = vim.fn.getcwd(), + sourceMaps = true, + protocol = 'inspector', + console = 'integratedTerminal', + }, +} + dap.adapters.python = { type = 'executable'; command = vim.trim(vim.fn.system('which python')); |
