diff --git a/init.lua b/init.lua index 998f09d..bc1603c 100644 --- a/init.lua +++ b/init.lua @@ -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 nnoremap ,B :DapClearBreakpoints