dotfiles/tools/nvim/lua/plugins/dap.lua
2025-03-16 22:21:02 +00:00

39 lines
991 B
Lua

-- Debugger setups
return {
{
"mfussenegger/nvim-dap",
config = function()
local dap = require("dap")
dap.adapters.codelldb = {
type = "executable",
command = "codelldb",
}
dap.configurations.cpp = {
{
name = "Launch file",
type = "codelldb",
request = "launch",
program = function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
},
}
dap.configurations.c = dap.configurations.cpp
dap.configurations.rust = dap.configurations.cpp
end,
},
{
"rcarriga/nvim-dap-ui",
opts = {},
dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" },
},
{ "theHamsta/nvim-dap-virtual-text", opts = {} },
{
"mfussenegger/nvim-dap-python",
config = function()
require("dap-python").setup("uv")
end,
},
}