From d77567f2264d09d0122c5fc0f8d37cd11e12d330 Mon Sep 17 00:00:00 2001 From: Miguel Palau Zarza Date: Thu, 18 Jul 2024 13:46:16 -0600 Subject: [PATCH] read from launch.json --- lua/lazyvim/plugins/extras/dap/core.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/lazyvim/plugins/extras/dap/core.lua b/lua/lazyvim/plugins/extras/dap/core.lua index ac6709f1..8ede47a5 100644 --- a/lua/lazyvim/plugins/extras/dap/core.lua +++ b/lua/lazyvim/plugins/extras/dap/core.lua @@ -69,6 +69,11 @@ return { vscode.json_decode = function(str) return vim.json.decode(json.json_strip_comments(str)) 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, },