summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitrii Morozov <snoopdesigns@gmail.com>2025-10-30 01:05:02 +0100
committerDmitrii Morozov <snoopdesigns@gmail.com>2025-10-30 01:05:02 +0100
commite0836c4faf5a81b9d2803e879bb83fe64cb7b74c (patch)
tree7f8959e9f96691359421f548fe2b7df003ecbf94
parent954521654ffa5c1b439e506b09714be33082d082 (diff)
Replace nova-dap-ui with nvim-dap-view pluginHEADmaster
-rw-r--r--lazy-lock.json9
-rw-r--r--lua/plugins/dap-ui.lua58
-rw-r--r--lua/plugins/dap-view.lua30
3 files changed, 37 insertions, 60 deletions
diff --git a/lazy-lock.json b/lazy-lock.json
index 0e6cf96..147c246 100644
--- a/lazy-lock.json
+++ b/lazy-lock.json
@@ -1,7 +1,7 @@
{
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"LazyVim": { "branch": "main", "commit": "d72127eb936f7f05d88d4fc316bc7e89080d69d8" },
- "SchemaStore.nvim": { "branch": "main", "commit": "4341619da06779ae310ee9c3d6d70edfefed7152" },
+ "SchemaStore.nvim": { "branch": "main", "commit": "3b0d7d781589ce98ce577202d25d07741ffcf479" },
"auto-save.nvim": { "branch": "main", "commit": "979b6c82f60cfa80f4cf437d77446d0ded0addf0" },
"blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
@@ -30,19 +30,20 @@
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-dap": { "branch": "master", "commit": "6782b097af2417a4c3e33849b0a26ae2188bd7ea" },
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
+ "nvim-dap-view": { "branch": "main", "commit": "1fe98bcb9dd5e28d659cf151960579f56f7a5019" },
"nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" },
"nvim-docker": { "branch": "main", "commit": "6af0a5e2b547cf51cbf6d9ccd864c3699bbd8308" },
"nvim-jdtls": { "branch": "master", "commit": "380ac148f989e1291aac002dc959ecc68c5243d0" },
"nvim-lint": { "branch": "master", "commit": "9da1fb942dd0668d5182f9c8dee801b9c190e2bb" },
- "nvim-lspconfig": { "branch": "master", "commit": "48a9b4dcd9a3611edddd51972d8abb1a289c7724" },
+ "nvim-lspconfig": { "branch": "master", "commit": "87d30189b24caa496b54affd65594a309ac6d929" },
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
- "nvim-treesitter": { "branch": "main", "commit": "645f42e85d8665c91a9911c3896afb57d6b8a923" },
+ "nvim-treesitter": { "branch": "main", "commit": "9ddd853e7e2ca1aa5dae23da1d8851b4c2319856" },
"nvim-treesitter-textobjects": { "branch": "main", "commit": "1b2d85d3de6114c4bcea89ffb2cd1ce9e3a19931" },
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
"persistence.nvim": { "branch": "main", "commit": "b20b2a7887bd39c1a356980b45e03250f3dce49c" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"render-markdown.nvim": { "branch": "main", "commit": "10126effbafb74541b69219711dfb2c631e7ebf8" },
- "snacks.nvim": { "branch": "main", "commit": "14ead48b513207298711224fe70a3abd58fcc190" },
+ "snacks.nvim": { "branch": "main", "commit": "ba529d4f5d409639e082aff916c9b8e71b480531" },
"spring-boot.nvim": { "branch": "main", "commit": "dff5fc9ff38dc60514caf95d57b0dbcd4da9028a" },
"todo-comments.nvim": { "branch": "main", "commit": "411503d3bedeff88484de572f2509c248e499b38" },
"tokyonight.nvim": { "branch": "main", "commit": "2642dbb83333e0575d1c3436e1d837926871c5fb" },
diff --git a/lua/plugins/dap-ui.lua b/lua/plugins/dap-ui.lua
index 6df72c5..3858c18 100644
--- a/lua/plugins/dap-ui.lua
+++ b/lua/plugins/dap-ui.lua
@@ -1,59 +1,5 @@
return {
"rcarriga/nvim-dap-ui",
- dependencies = {
- "nvim-neotest/nvim-nio",
- },
- keys = {
- {
- "<leader>du",
- function()
- require("dapui").toggle({ layout = 1 })
- end,
- desc = "Dap UI",
- },
- },
- opts = {
- layouts = {
- -- Run layout
- {
- elements = {
- { id = "repl", size = 0.20 },
- { id = "console", size = 0.80 },
- },
- size = 30,
- position = "bottom",
- },
- -- Debug layout
- {
- elements = {
- { id = "scopes", size = 0.20 },
- { id = "stacks", size = 0.20 },
- { id = "console", size = 0.60 },
- },
- size = 30,
- position = "bottom",
- },
- },
- },
- config = function(_, opts)
- require("dapui").setup(opts)
-
- local listener = require("dap").listeners
- listener.after.event_initialized["dapui_config"] = function()
- require("dapui").close()
- require("dapui").toggle({ layout = 1 })
- end
- listener.after.event_continued["dapui_config"] = function()
- require("dapui").close()
- require("dapui").toggle({ layout = 1 })
- end
- listener.after.event_breakpoint["dapui_config"] = function()
- require("dapui").close()
- require("dapui").toggle({ layout = 2 })
- end
- listener.after.event_terminated["dapui_config"] = function()
- require("dapui").close()
- require("dapui").toggle({ layout = 1 })
- end
- end,
+ -- Disable nvim-dap-ui in favor of nvim-dap-view
+ enabled = false,
}
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,
+}