added dap configuration for c, c++ and rust
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user