From d5dc915d69aef09b7330a6a0958f2ddd82ccc230 Mon Sep 17 00:00:00 2001 From: Ori Perry Date: Sat, 28 Feb 2026 13:25:44 +0200 Subject: [PATCH] Fix stylua formatting --- lua/kickstart/plugins/debug.lua | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 9c51565f..5ff1b4b8 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -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