refactor config
This commit is contained in:
commit
4f0e213f4a
155 changed files with 13983 additions and 0 deletions
22
config/astronvim/lua/user/mason-nvim-dap/setup_handlers.lua
Normal file
22
config/astronvim/lua/user/mason-nvim-dap/setup_handlers.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
return {
|
||||
firefox = function(source_name)
|
||||
local dap = require("dap")
|
||||
dap.adapters.firefox = {
|
||||
type = "executable",
|
||||
command = "node",
|
||||
args = { os.getenv("HOME") .. "/.local/share/nvim/mason/bin/firefox-debug-adapter" },
|
||||
}
|
||||
|
||||
dap.configurations.javascriptreact = {
|
||||
{
|
||||
name = "Debug with Firefox",
|
||||
type = "firefox",
|
||||
request = "launch",
|
||||
reAttach = true,
|
||||
url = "http://localhost:3000",
|
||||
webRoot = "${workspaceFolder}",
|
||||
firefoxExecutable = "/usr/bin/firefox-developer-edition",
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue