mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
39 lines
991 B
Lua
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,
|
|
},
|
|
}
|