fix refactor

This commit is contained in:
dlond 2025-05-25 23:44:51 +12:00
parent 6455565e79
commit 97ee0a6eca
2 changed files with 45 additions and 40 deletions

View file

@ -68,7 +68,12 @@ return {
name = 'Launch C/C++ (lldb-dap)',
type = 'lldb',
request = 'launch',
program = require('custom.utils').pick_executable,
program = function()
local utils = require 'custom.utils'
local co = utils.pick_executable '${workspaceFolder}/build'
local ok, result = coroutine.resume(co)
return ok and result or nil
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
args = {},