add cpp config and fix adapter

This commit is contained in:
Oliver Hartmann 2022-08-13 19:18:29 +02:00
parent ebd55ecc55
commit 59d9b95eb9

View File

@ -87,14 +87,26 @@ dap.adapters.codelldb = {
port = "${port}",
executable = {
-- CHANGE THIS to your path!
command = '/absolute/path/to/codelldb/extension/adapter/codelldb',
command = masonpath .. '/bin/codelldb.cmd',
args = { '--port', '${port}' },
-- On windows you may have to uncomment this:
-- detached = false,
detached = false,
}
}
dap.configurations.cpp = {
{
name = "Launch file",
type = "codelldb",
request = "launch",
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = '${workspaceFolder}',
stopOnEntry = true,
},
}
-- EXTENSIONS