Fix stylua formatting

This commit is contained in:
Ori Perry 2026-02-28 13:25:44 +02:00
parent 74ed652b10
commit d5dc915d69
1 changed files with 5 additions and 15 deletions

View File

@ -44,9 +44,7 @@ return {
local buf_bps = require('dap.breakpoints').get(vim.fn.bufnr())[vim.fn.bufnr()]
---@type dap.SourceBreakpoint
for _, candidate in ipairs(buf_bps) do
if candidate.line and candidate.line == vim.fn.line '.' then
return candidate
end
if candidate.line and candidate.line == vim.fn.line '.' then return candidate end
end
return { condition = '', logMessage = '', hitCondition = '', line = vim.fn.line '.' }
@ -58,21 +56,15 @@ return {
local props = {
['Condition'] = {
value = bp.condition,
setter = function(v)
bp.condition = v
end,
setter = function(v) bp.condition = v end,
},
['Hit Condition'] = {
value = bp.hitCondition,
setter = function(v)
bp.hitCondition = v
end,
setter = function(v) bp.hitCondition = v end,
},
['Log Message'] = {
value = bp.logMessage,
setter = function(v)
bp.logMessage = v
end,
setter = function(v) bp.logMessage = v end,
},
}
local menu_options = {}
@ -81,9 +73,7 @@ return {
end
vim.ui.select(menu_options, {
prompt = 'Edit Breakpoint',
format_item = function(item)
return ('%s: %s'):format(item, props[item].value)
end,
format_item = function(item) return ('%s: %s'):format(item, props[item].value) end,
}, function(choice)
if choice == nil then
-- User cancelled the selection