diff --git a/dots/.nvim-environments/primary/config/lua/plugins/configs/_dap.lua b/dots/.nvim-environments/primary/config/lua/plugins/configs/_dap.lua index 494384fa..3750b6fe 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/_dap.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/_dap.lua @@ -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"; + } +}