Skip to content

Commit

Permalink
mason nvim dap 2.0 removed setup_handlers() (nvim-lua#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakx authored and cche committed Jul 6, 2023
1 parent c9280b6 commit dcfb0c2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lua/kickstart/plugins/debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
return {
-- NOTE: Yes, you can install new plugins here!
'mfussenegger/nvim-dap',

-- NOTE: And you can specify dependencies as well
dependencies = {
-- Creates a beautiful debugger UI
Expand All @@ -22,7 +21,6 @@ return {
-- Add your own debuggers here
'leoluz/nvim-dap-go',
},

config = function()
local dap = require 'dap'
local dapui = require 'dapui'
Expand All @@ -32,6 +30,10 @@ return {
-- reasonable debug configurations
automatic_setup = 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 = {
Expand All @@ -40,10 +42,6 @@ return {
},
}

-- You can provide additional configuration to the handlers,
-- see mason-nvim-dap README for more information
require('mason-nvim-dap').setup_handlers()

-- Basic debugging keymaps, feel free to change to your liking!
vim.keymap.set('n', '<F5>', dap.continue)
vim.keymap.set('n', '<F1>', dap.step_into)
Expand Down

0 comments on commit dcfb0c2

Please sign in to comment.