Initial commit

This commit is contained in:
2024-10-02 14:54:32 +02:00
commit 14af275c5c
27 changed files with 1871 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
---@type overseer.ComponentFileDefinition
return {
desc = "DAP",
constructor = function(params)
---@type Configuration
local config = params.config
---@type overseer.ComponentSkeleton
return {
on_init = function(_, task)
task.cmd = { vim.fn.exepath "true" }
task:remove_component "on_complete_notify"
task:add_component "on_complete_dispose"
local ToggleTermStrategy = require "overseer.strategy.toggleterm"
task.strategy = ToggleTermStrategy.new {
auto_scroll = false,
close_on_exit = false,
quit_on_exit = "never",
hidden = true,
use_shell = false,
open_on_start = false,
}
end,
on_start = function()
local dap = require "dap"
dap.run(config, { new = true })
end,
}
end,
params = { config = { type = "opaque" } },
}