-- 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()]], { desc = "Toggle DAP [B]reakpoint"}) vim.keymap.set('n', 'be', [[lua require('dap').set_exception_breakpoints()]], { desc = "Toggle DAP [B]reak on [E]xceptions" }) vim.keymap.set('n', 'bc', [[lua require('dap').clear_breakpoints()]], { desc = "[C]lear DAP [B]reakpoints" }) vim.keymap.set('n', 'bo', [[lua require('dapui').toggle()]], { desc = "Toggle nvim dapui" })