From 871fa321bd3e395761f5a5db4050bf812ad179b9 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 5 Mar 2026 18:29:07 -0500 Subject: [PATCH] ci: format --- lua/cp/commands/init.lua | 7 ++++++- plugin/cp.lua | 9 ++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lua/cp/commands/init.lua b/lua/cp/commands/init.lua index 364608d..5006cc9 100644 --- a/lua/cp/commands/init.lua +++ b/lua/cp/commands/init.lua @@ -95,7 +95,12 @@ local function parse_command(args) elseif first == 'interact' then local inter = args[2] if inter and inter ~= '' then - return { type = 'action', action = 'interact', requires_context = true, interactor_cmd = inter } + return { + type = 'action', + action = 'interact', + requires_context = true, + interactor_cmd = inter, + } else return { type = 'action', action = 'interact', requires_context = true } end diff --git a/plugin/cp.lua b/plugin/cp.lua index 1484da3..3e3b56c 100644 --- a/plugin/cp.lua +++ b/plugin/cp.lua @@ -44,9 +44,12 @@ end, { table.insert(candidates, 'cache') table.insert(candidates, 'pick') if platform and contest_id then - vim.list_extend(candidates, vim.tbl_filter(function(a) - return a ~= 'pick' and a ~= 'cache' - end, actions)) + vim.list_extend( + candidates, + vim.tbl_filter(function(a) + return a ~= 'pick' and a ~= 'cache' + end, actions) + ) local cache = require('cp.cache') cache.load() local contest_data = cache.get_contest_data(platform, contest_id)