Skip to content

Commit

Permalink
feat(debugging): add nvim-dap-view
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jan 24, 2025
1 parent bac0a03 commit 88b04d0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/debugging/nvim-dap-view/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# nvim-dap-view

minimalistic nvim-dap-ui alternative

**Repository:** <https://github.com/igorlfs/nvim-dap-view>
28 changes: 28 additions & 0 deletions lua/astrocommunity/debugging/nvim-dap-view/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
return {
"igorlfs/nvim-dap-view",
lazy = true,
opts = {},
specs = {
{
"AstroNvim/astrocore",
opts = function(_, opts)
local maps = opts.mappings
maps.n["<Leader>d"] = vim.tbl_get(opts, "_map_sections", "d")
maps.n["<Leader>dE"] = { function() require("dap-view").add_expr() end, desc = "Add expression" }
maps.n["<Leader>du"] = { function() require("dap-view").toggle() end, desc = "Toggle Debugger UI" }
end,
},
{
"mfussenegger/nvim-dap",
optional = true,
dependencies = "igorlfs/nvim-dap-view",
opts = function()
local dap, dap_view = require "dap", require "dap-view"
dap.listeners.after.event_initialized.dapview_config = function() dap_view.open() end
dap.listeners.before.event_terminated.dapview_config = function() dap_view.close() end
dap.listeners.before.event_exited.dapview_config = function() dap_view.close() end
end,
},
{ "rcarriga/nvim-dap-ui", enabled = false },
},
}

0 comments on commit 88b04d0

Please sign in to comment.