diff --git a/nvim/lua/plugins/dap.lua b/nvim/lua/plugins/dap.lua index 75a9842..e049c56 100644 --- a/nvim/lua/plugins/dap.lua +++ b/nvim/lua/plugins/dap.lua @@ -69,6 +69,25 @@ return { vim.fn.sign_define('DapBreakpoint', { text = 'ᛒ', texthl = '', lineh = '', numhl = '' }) 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.configurations.rust = { + { + name = 'Launch', + type = 'gdb', + request = 'launch', + program = function() + return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') + end, + cwd = '${workspaceFolder}', + stopAtBeginningOfMainSubprogram = false, + }, + } end, keys = { { diff --git a/nvim/lua/plugins/mason.lua b/nvim/lua/plugins/mason.lua index e51e0f7..ecff98a 100644 --- a/nvim/lua/plugins/mason.lua +++ b/nvim/lua/plugins/mason.lua @@ -59,10 +59,10 @@ return { settings = { ['rust-analyzer'] = { checkOnSave = true, - check = { - command = 'clippy', - extraArgs = { '--', '-Dclippy::all', '-Wclippy::pedantic' }, - }, + -- check = { + -- command = 'clippy', + -- extraArgs = { '--', '-Dclippy::all', '-Wclippy::pedantic' }, + -- }, diagnostics = { enable = true, experimental = {