added dap configuration for c, c++ and rust

This commit is contained in:
Ivar Fatland
2025-02-18 08:41:55 +01:00
parent 03761e19d0
commit 5dfa808e9d
+22
View File
@@ -213,6 +213,28 @@ require'lazy'.setup{ --{{{1
dap.adapters.godot = { type = 'server', host = '127.0.0.1', port = 6006, }
dap.configurations.gdscript = { {type = 'godot', request = 'launch', name = 'Launch scene', project = "${workspaceFolder}",} }
dap.adapters.lldb = {
type = 'executable',
command = vim.fn.exepath('lldb-dap'),
name = 'lldb'
}
dap.configurations.c = {
{
name = 'Launch',
type = 'lldb',
request = 'launch',
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
args = {},
runInTerminal = true,
},
}
dap.configurations.cpp = dap.configurations.c
dap.configurations.rust = dap.configurations.c
vim.cmd [[
nnoremap ,b :DapToggleBreakpoint<CR>
nnoremap ,B :DapClearBreakpoints<CR>