ci: format
This commit is contained in:
parent
4381b9f861
commit
871fa321bd
2 changed files with 12 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue