diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2024-08-30 15:54:08 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2024-08-30 15:54:08 -0300 |
| commit | 6364400a98c93cdf6f2209670be1d2b6e31ee6ab (patch) | |
| tree | 8e3c5d3bc755722614c796894dc5e63fdd763770 /lua/pi/dap/configs/javascript.lua | |
| parent | 066df483e9441e89d7af25b171784efcf3ffffec (diff) | |
| parent | 15ea0d5ae7c393493407ffb0c151656cc27ee01b (diff) | |
| download | nvim-conf-6364400a98c93cdf6f2209670be1d2b6e31ee6ab.tar.gz nvim-conf-6364400a98c93cdf6f2209670be1d2b6e31ee6ab.zip | |
Merge branch 'ts-dap'
Diffstat (limited to 'lua/pi/dap/configs/javascript.lua')
| -rw-r--r-- | lua/pi/dap/configs/javascript.lua | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/lua/pi/dap/configs/javascript.lua b/lua/pi/dap/configs/javascript.lua index 03173ba..ef616f1 100644 --- a/lua/pi/dap/configs/javascript.lua +++ b/lua/pi/dap/configs/javascript.lua @@ -4,17 +4,23 @@ dap.adapters.firefox = { command = 'firefox-debug-adapter', } -dap.configurations.typescript = { - { - name = 'Debug with Firefox', - type = 'firefox', - request = 'launch', - reAttach = true, - url = 'http://localhost:3010', - webRoot = '${workspaceFolder}', - firefoxExecutable = '/home/elvis/.local/bin/firefox' - }, -} +for _, language in ipairs({ "typescript", "javascript", "javascriptreact", "typescriptreact" }) do + dap.configurations[language] = { + { + name = 'Debug with Firefox', + type = 'firefox', + request = 'launch', + reAttach = true, + url = 'http://localhost:5173', + webRoot = '${workspaceFolder}', + firefoxExecutable = '/home/elvis/.local/bin/firefox', + -- firefoxArgs = {'-start-debugger-server', '--new-instance'}, + enableCRAWorkaround = true, + liftAccessorsFromPrototypes = 3, + }, + } +end + -- require("dap-vscode-js").setup { -- debugger_cmd = { "js-debug-adapter" }, -- adapters = { "pwa-node", "pwa-chrome", "node-terminal" }, |