What happens if you try to combine dap-view and hydra.nvim? debugmaster.nvim – a modern dap-ui alternative!
Lua
385
144 commits
updated Jan 2, 2026
debugmaster.nvim is a neovim plugin that provides two things:
https://github.com/user-attachments/assets/f49d5033-7a46-408a-980a-060c8093d5bf
The goals of this plugin:
The plugin is completely usable, but still under development. Breaking changes are possible—follow commit notices.
Using lazy.nvim plugin manager:
return {
{ "rcarriga/nvim-dap-ui", enabled = false },
{
"MironPascalCaseFan/debugmaster.nvim",
-- osv is needed if you want to debug neovim lua code. Also can be used
-- as a way to quickly test-drive the plugin without configuring debug adapters
dependencies = { "mfussenegger/nvim-dap", "jbyuki/one-small-step-for-vimkind", },
config = function()
local dm = require("debugmaster")
-- make sure you don't have any other keymaps that starts with "<leader>d" to avoid delay
-- Alternative keybindings to "<leader>d" could be: "<leader>m", "<leader>;"
vim.keymap.set({ "n", "v" }, "<leader>d", dm.mode.toggle, { nowait = true })
-- If you want to disable debug mode in addition to leader+d using the Escape key:
-- vim.keymap.set("n", "<Esc>", dm.mode.disable)
-- This might be unwanted if you already use Esc for ":noh"
vim.keymap.set("t", "<C-\\>", "<C-\\><C-n>", { desc = "Exit terminal mode" })
dm.plugins.osv_integration.enabled = true -- needed if you want to debug neovim lua code
local dap = require("dap")
-- Configure your debug adapters here
-- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation
end
}
}
NOTE: Don't mix this plugin with dap-ui!
<leader>d to toggle debug mode.H in debug mode to view available commands.u.U if the side panel has too little space to display content.t and start debugging with c.o - step over, m - step into, q - step out, r- run to cursor). You can view all of them in the Help section by pressing H.You can find explanations regarding the choice of these keymaps and a dap-view-like UI here
local dm = require("debugmaster")
-- keymaps changing example
dm.keys.get("x").key = "y" -- remap x key in debug mode to y
-- changing some plugin options (see 1. note)
dm.plugins.cursor_hl.enabled = false
dm.plugins.ui_auto_toggle.enabled = false
-- Changing debug mode cursor hl
-- Debug mode cursor color controlled by "dCursor" highlight group
-- so to change it you can use the following code
vim.api.nvim_set_hl(0, "dCursor", {bg = "#FF2C2C"})
-- make sure to call this after you do vim.cmd("colorscheme x")
-- otherwise this highlight group could be cleaned by your colorscheme
Recipes for how to configure debugmaster for reverse debugging of c++, c, and rust, how to display debug mode in your status line, starting debug neovim lua code in two keypresses and more can be found here.
671 followers · starred May 2025
1,475 followers · starred May 2025
506 followers · starred May 2025
168 followers · starred May 2025
What happens if you try to combine dap-view and hydra.nvim? debugmaster.nvim – a modern dap-ui alternative!
Lua
385
144 commits
updated Jan 2, 2026
debugmaster.nvim is a neovim plugin that provides two things:
https://github.com/user-attachments/assets/f49d5033-7a46-408a-980a-060c8093d5bf
The goals of this plugin:
The plugin is completely usable, but still under development. Breaking changes are possible—follow commit notices.
Using lazy.nvim plugin manager:
return {
{ "rcarriga/nvim-dap-ui", enabled = false },
{
"MironPascalCaseFan/debugmaster.nvim",
-- osv is needed if you want to debug neovim lua code. Also can be used
-- as a way to quickly test-drive the plugin without configuring debug adapters
dependencies = { "mfussenegger/nvim-dap", "jbyuki/one-small-step-for-vimkind", },
config = function()
local dm = require("debugmaster")
-- make sure you don't have any other keymaps that starts with "<leader>d" to avoid delay
-- Alternative keybindings to "<leader>d" could be: "<leader>m", "<leader>;"
vim.keymap.set({ "n", "v" }, "<leader>d", dm.mode.toggle, { nowait = true })
-- If you want to disable debug mode in addition to leader+d using the Escape key:
-- vim.keymap.set("n", "<Esc>", dm.mode.disable)
-- This might be unwanted if you already use Esc for ":noh"
vim.keymap.set("t", "<C-\\>", "<C-\\><C-n>", { desc = "Exit terminal mode" })
dm.plugins.osv_integration.enabled = true -- needed if you want to debug neovim lua code
local dap = require("dap")
-- Configure your debug adapters here
-- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation
end
}
}
NOTE: Don't mix this plugin with dap-ui!
<leader>d to toggle debug mode.H in debug mode to view available commands.u.U if the side panel has too little space to display content.t and start debugging with c.o - step over, m - step into, q - step out, r- run to cursor). You can view all of them in the Help section by pressing H.You can find explanations regarding the choice of these keymaps and a dap-view-like UI here
local dm = require("debugmaster")
-- keymaps changing example
dm.keys.get("x").key = "y" -- remap x key in debug mode to y
-- changing some plugin options (see 1. note)
dm.plugins.cursor_hl.enabled = false
dm.plugins.ui_auto_toggle.enabled = false
-- Changing debug mode cursor hl
-- Debug mode cursor color controlled by "dCursor" highlight group
-- so to change it you can use the following code
vim.api.nvim_set_hl(0, "dCursor", {bg = "#FF2C2C"})
-- make sure to call this after you do vim.cmd("colorscheme x")
-- otherwise this highlight group could be cleaned by your colorscheme
Recipes for how to configure debugmaster for reverse debugging of c++, c, and rust, how to display debug mode in your status line, starting debug neovim lua code in two keypresses and more can be found here.
671 followers · starred May 2025
1,475 followers · starred May 2025
506 followers · starred May 2025
168 followers · starred May 2025