summaryrefslogtreecommitdiff
path: root/lua/plugins/dap-view.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/dap-view.lua')
-rw-r--r--lua/plugins/dap-view.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/plugins/dap-view.lua b/lua/plugins/dap-view.lua
new file mode 100644
index 0000000..786039f
--- /dev/null
+++ b/lua/plugins/dap-view.lua
@@ -0,0 +1,30 @@
+return {
+ "igorlfs/nvim-dap-view",
+ keys = {
+ {
+ "<leader>du",
+ function()
+ require("dap-view").toggle()
+ end,
+ desc = "DAP View",
+ },
+ },
+ ---@module 'dap-view'
+ ---@type dapview.Config
+ opts = {
+ winbar = {
+ sections = { "console", "scopes", "watches", "repl" },
+ default_section = "console",
+ controls = {
+ enabled = true,
+ },
+ },
+ },
+ config = function(_, opts)
+ require("dap-view").setup(opts)
+
+ require("dap").listeners.after.event_initialized["dap-view-config"] = function()
+ require("dap-view").open()
+ end
+ end,
+}