fixed linux dap config

This commit is contained in:
Oliver Hartmann 2022-09-26 09:07:15 +02:00
parent ea6e95aca8
commit a3942972d8

View File

@ -97,7 +97,13 @@ dap.adapters.codelldb = {
dap.adapters.lldb = { dap.adapters.lldb = {
type = 'executable', type = 'executable',
command = os.getenv('SCOOP') .. '/apps/llvm/current/bin/lldb-vscode.exe', command = function()
if vim.loop.os_uname().sysname == 'Linux' then
return 'lldb-vscode'
else
return os.getenv('SCOOP') .. '/apps/llvm/current/bin/lldb-vscode.exe'
end
end,
name = 'lldb' name = 'lldb'
} }