2023-11-25 14:37:36 +02:00
|
|
|
-- Debug adapter for NeoVim
|
|
|
|
--- @type LazyPluginSpec
|
2023-11-18 02:27:14 +02:00
|
|
|
return {
|
|
|
|
"mfussenegger/nvim-dap",
|
|
|
|
config = function()
|
|
|
|
local dap = require("dap")
|
2023-02-22 17:54:39 +02:00
|
|
|
|
2023-11-18 02:27:14 +02:00
|
|
|
dap.adapters.bashdb = {
|
|
|
|
type = "executable",
|
|
|
|
command = vim.fn.stdpath("data") .. "/mason/packages/bash-debug-adapter/bash-debug-adapter",
|
|
|
|
name = "bashdb",
|
|
|
|
}
|
2023-02-22 17:54:39 +02:00
|
|
|
|
2023-11-18 02:27:14 +02:00
|
|
|
dap.configurations.sh = {
|
|
|
|
{
|
|
|
|
type = "bashdb",
|
|
|
|
request = "launch",
|
|
|
|
name = "Launch file",
|
|
|
|
showDebugOutput = true,
|
|
|
|
pathBashdb = vim.fn.stdpath("data") .. "/mason/packages/bash-debug-adapter/extension/bashdb_dir/bashdb",
|
|
|
|
pathBashdbLib = vim.fn.stdpath("data") .. "/mason/packages/bash-debug-adapter/extension/bashdb_dir",
|
|
|
|
trace = true,
|
|
|
|
file = "${file}",
|
|
|
|
program = "${file}",
|
|
|
|
cwd = "${workspaceFolder}",
|
|
|
|
pathCat = "cat",
|
|
|
|
pathBash = "/bin/bash",
|
|
|
|
pathMkfifo = "mkfifo",
|
|
|
|
pathPkill = "pkill",
|
|
|
|
args = {},
|
|
|
|
env = {},
|
|
|
|
terminalKind = "integrated",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
}
|