mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
refactor: ...
This commit is contained in:
parent
b697442a3e
commit
85cb196296
1 changed files with 8 additions and 10 deletions
|
|
@ -1,7 +1,3 @@
|
|||
local debugtypePreferred = {
|
||||
['node'] = 'pwa-node',
|
||||
}
|
||||
|
||||
local inlay_hints_settings = {
|
||||
includeInlayEnumMemberValueHints = true,
|
||||
includeInlayFunctionLikeReturnTypeHints = true,
|
||||
|
|
@ -107,11 +103,13 @@ return {
|
|||
},
|
||||
}
|
||||
end
|
||||
if not dap.adapters['node'] then
|
||||
dap.adapters['node'] = function (cb, config)
|
||||
config.type = debugtypePreferred[config.type] or config.type
|
||||
local nativeAdapter = dap.adapters['pwa-node']
|
||||
if type(nativeAdapter) == 'function' then
|
||||
if not dap.adapters["node"] then
|
||||
dap.adapters["node"] = function(cb, config)
|
||||
if config.type == "node" then
|
||||
config.type = "pwa-node"
|
||||
end
|
||||
local nativeAdapter = dap.adapters["pwa-node"]
|
||||
if type(nativeAdapter) == "function" then
|
||||
nativeAdapter(cb, config)
|
||||
else
|
||||
cb(nativeAdapter)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue