minor fix

This commit is contained in:
js0ny 2025-03-16 22:21:02 +00:00
parent fbec6c35a4
commit 2cff95950c
8 changed files with 99 additions and 30 deletions

View file

@ -1,6 +1,29 @@
-- Debugger setups
return {
{ "mfussenegger/nvim-dap" },
{
"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 = {},