This commit is contained in:
orip 2025-07-11 18:38:30 +03:00
parent edb018e88f
commit 3d901a3583
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ return {
{ {
'<leader>B', '<leader>B',
function() function()
require 'dap.protocol'
local dap = require 'dap' local dap = require 'dap'
-- Search for an existing breakpoint on this line in this buffer -- Search for an existing breakpoint on this line in this buffer
---@return dap.SourceBreakpoint bp that was either found, or an empty placeholder ---@return dap.SourceBreakpoint bp that was either found, or an empty placeholder
local function find_bp() local function find_bp()
@ -48,6 +48,7 @@ return {
return candidate return candidate
end end
end end
return { condition = '', logMessage = '', hitCondition = '', line = vim.fn.line '.' } return { condition = '', logMessage = '', hitCondition = '', line = vim.fn.line '.' }
end end
@ -80,7 +81,6 @@ return {
-- User cancelled the selection -- User cancelled the selection
return return
end end
props[choice].setter(vim.fn.input { props[choice].setter(vim.fn.input {
prompt = ('[%s] '):format(choice), prompt = ('[%s] '):format(choice),
default = props[choice].value, default = props[choice].value,