diff --git a/neovim/lua/plugins/ide.lua b/neovim/lua/plugins/ide.lua index ac39ae7..b84612c 100644 --- a/neovim/lua/plugins/ide.lua +++ b/neovim/lua/plugins/ide.lua @@ -405,6 +405,13 @@ return { on_attach = on_attach, settings = lsp_settings.rust_analyzer, }, + + dap = { + adapter = require('rust-tools.dap').get_codelldb_adapter( + '/usr/bin/codelldb', + '/usr/lib/liblldb.so' + ), + }, }) end, }) @@ -496,4 +503,20 @@ return { } end, }, + + -- Debugging + { + 'mfussenegger/nvim-dap', + lazy = false, + keys = { + { "db", function() require('dap').toggle_breakpoint() end }, + { "dB", function() require('dap').set_breakpoint() end }, + { "dc", function() require('dap').continue() end }, + { "dn", function() require('dap').step_over() end }, + { "dsi", function() require('dap').step_into() end }, + { "dso", function() require('dap').step_out() end }, + { "dj", function() require('dap').down() end }, + { "dk", function() require('dap').up() end }, + }, + }, }