Skip to main content

DAP Core

info

You can enable the extra with the :LazyExtras command. Plugins marked as optional will only be configured if they are installed.

Alternatively, you can add it to your lazy.nvim imports
lua/config/lazy.lua
require("lazy").setup({
spec = {
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
{ import = "lazyvim.plugins.extras.dap.core" },
{ import = "plugins" },
},
})

Below you can find a list of included plugins and their default settings.

caution

You don't need to copy the default settings to your config. They are only shown here for reference.

nvim-dap

opts = {}

nvim-dap-ui

fancy UI for the debugger

opts = {}

nvim-nio

opts = nil

nvim-dap-virtual-text

virtual text for the debugger

opts = {}

mason-nvim-dap.nvim

mason.nvim integration

opts = {
-- Makes a best effort to setup the various debuggers with
-- reasonable debug configurations
automatic_installation = true,

-- You can provide additional configuration to the handlers,
-- see mason-nvim-dap README for more information
handlers = {},

-- You'll need to check that you have the required things installed
-- online, please don't ask me how to install them :)
ensure_installed = {
-- Update this to ensure that you have the debuggers for the langs you want
},
}

which-key.nvim (optional)

which key integration

opts = {
defaults = {
["<leader>d"] = { name = "+debug" },
},
}