diff options
Diffstat (limited to 'lua/pi/dap/configs/javascript.lua')
| -rw-r--r-- | lua/pi/dap/configs/javascript.lua | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lua/pi/dap/configs/javascript.lua b/lua/pi/dap/configs/javascript.lua index ef616f1..30388ac 100644 --- a/lua/pi/dap/configs/javascript.lua +++ b/lua/pi/dap/configs/javascript.lua @@ -1,22 +1,22 @@ -local dap = require('dap') +local dap = require "dap" dap.adapters.firefox = { - type = 'executable', - command = 'firefox-debug-adapter', + type = "executable", + command = "firefox-debug-adapter", } -for _, language in ipairs({ "typescript", "javascript", "javascriptreact", "typescriptreact" }) do +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, + name = "Debug with Firefox", + type = "firefox", + request = "launch", + reAttach = true, + url = "http://localhost:3000", + webRoot = "${workspaceFolder}", + firefoxExecutable = "/home/elvis/App/firefox/firefox", + -- firefoxArgs = {'-start-debugger-server', '--new-instance'}, + enableCRAWorkaround = true, + liftAccessorsFromPrototypes = 3, }, } end |