From 96063079b48c564f83489b25f608fd929e01ef14 Mon Sep 17 00:00:00 2001 From: Joshua Finch Date: Sun, 27 Jul 2025 18:05:15 -0500 Subject: [PATCH] fix: Changes to the rust debugging setup --- nvim/lua/plugins/dap.lua | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/nvim/lua/plugins/dap.lua b/nvim/lua/plugins/dap.lua index d51f3dd..53097fe 100644 --- a/nvim/lua/plugins/dap.lua +++ b/nvim/lua/plugins/dap.lua @@ -96,26 +96,26 @@ return { vim.fn.sign_define('DapBreakpointCondition', { text = '🝌', texthl = '', lineh = '', numhl = '' }) vim.fn.sign_define('DapStopped', { text = '▶️' }) - dap.adapters.gdb = { - type = 'executable', - command = 'gdb', - args = { '-i', 'dap' }, - } + -- dap.adapters.gdb = { + -- type = 'executable', + -- command = 'gdb', + -- args = { '-i', 'dap' }, + -- } dap.adapters.lldb = { - type = 'executable', command = 'lldb', + type = 'executable', } dap.adapters.debugpy = { - type = 'executable', command = 'debugpy', + type = 'executable', } dap.configurations = { rust = { { - type = 'gdb', + type = 'lldb', name = 'Debug', request = 'launch', program = function() @@ -130,14 +130,6 @@ return { name = 'Launch current file', request = 'launch', program = '${file}', - -- pythonPath = function() - -- local cwd = vim.fn.getcwd() - -- if vim.fn.executable(cwd .. '/.venv/bin/python') == 1 then - -- return cwd .. '/.venv/bin/python' - -- else - -- return '/usr/bin/python' - -- end - -- end, } } }