read from launch.json

This commit is contained in:
Miguel Palau Zarza 2024-07-18 13:46:16 -06:00
parent f9fdb356f2
commit d77567f226
No known key found for this signature in database
GPG key ID: C726EE42517E1C8E

View file

@ -69,6 +69,11 @@ return {
vscode.json_decode = function(str) vscode.json_decode = function(str)
return vim.json.decode(json.json_strip_comments(str)) return vim.json.decode(json.json_strip_comments(str))
end end
-- Extends dap.configurations with entries read from .vscode/launch.json
if vim.fn.filereadable(".vscode/launch.json") then
require("dap.ext.vscode").load_launchjs(nil, {})
end
end, end,
}, },