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 = {
|
local inlay_hints_settings = {
|
||||||
includeInlayEnumMemberValueHints = true,
|
includeInlayEnumMemberValueHints = true,
|
||||||
includeInlayFunctionLikeReturnTypeHints = true,
|
includeInlayFunctionLikeReturnTypeHints = true,
|
||||||
|
|
@ -107,12 +103,14 @@ return {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
if not dap.adapters['node'] then
|
if not dap.adapters["node"] then
|
||||||
dap.adapters['node'] = function (cb, config)
|
dap.adapters["node"] = function(cb, config)
|
||||||
config.type = debugtypePreferred[config.type] or config.type
|
if config.type == "node" then
|
||||||
local nativeAdapter = dap.adapters['pwa-node']
|
config.type = "pwa-node"
|
||||||
if type(nativeAdapter) == 'function' then
|
end
|
||||||
nativeAdapter(cb, config )
|
local nativeAdapter = dap.adapters["pwa-node"]
|
||||||
|
if type(nativeAdapter) == "function" then
|
||||||
|
nativeAdapter(cb, config)
|
||||||
else
|
else
|
||||||
cb(nativeAdapter)
|
cb(nativeAdapter)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue