feat(nvim): add bash debug adapter support

This commit is contained in:
Price Hiller 2023-03-05 06:33:30 -06:00
parent bf40cf4c55
commit 24cfe91ae4
No known key found for this signature in database

View File

@ -23,6 +23,13 @@ dap.adapters.coreclr = {
args = { "--interpreter=vscode" },
}
dap.adapters.bashdb = {
type = 'executable',
command = vim.fn.stdpath("data") .. '/mason/packages/bash-debug-adapter/bash-debug-adapter',
name = 'bashdb'
}
-- configurations
dap.configurations.cpp = {
{
@ -107,3 +114,25 @@ local config = {
dap.configurations.cs = config
dap.configurations.fsharp = config
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";
}
}