diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index c4b99b1..794dd2c 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -734,6 +734,12 @@ local plugins = { end, config = function() local dap = require "dap" + dap.adapters.gdb = { + type = "executable", + command = "gdb", + args = { "-i", "dap" }, + } + dap.configurations.c = { { name = "Launch", @@ -745,6 +751,8 @@ local plugins = { cwd = "${workspaceFolder}", }, } + dap.configurations.rust = dap.configurations.c + dap.configurations.cpp = dap.configurations.c end, }, }