-- thallada: this is setup in rust-tools local dap = require('dap') -- dap.adapters.codelldb = { -- type = 'server', -- port = '${port}', -- executable = { -- command = '/home/thallada/vscode-lldb/extension/adapter/codelldb', -- args = { '--port', '${port}'} -- } -- } -- dap.configurations.rust = { -- { -- 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, -- }, -- } vim.keymap.set('n', 'b', [[lua require('dap').toggle_breakpoint()]]) vim.keymap.set('n', 'be', [[lua require('dap').set_exception_breakpoints()]]) vim.keymap.set('n', 'bc', [[lua require('dap').clear_breakpoints()]]) vim.keymap.set('n', 'bo', [[lua require('dapui').toggle()]])