fix
This commit is contained in:
parent
699207e713
commit
4429b5fe67
2 changed files with 8 additions and 4 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
local picker_utils = require('cp.pickers')
|
local picker_utils = require('cp.pickers')
|
||||||
|
|
||||||
local function contest_picker(platform)
|
local contest_picker, problem_picker
|
||||||
|
|
||||||
|
function contest_picker(platform)
|
||||||
local constants = require('cp.constants')
|
local constants = require('cp.constants')
|
||||||
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
|
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
|
||||||
local fzf = require('fzf-lua')
|
local fzf = require('fzf-lua')
|
||||||
|
|
@ -51,7 +53,7 @@ local function contest_picker(platform)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
local function problem_picker(platform, contest_id)
|
function problem_picker(platform, contest_id)
|
||||||
local constants = require('cp.constants')
|
local constants = require('cp.constants')
|
||||||
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
|
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
|
||||||
local fzf = require('fzf-lua')
|
local fzf = require('fzf-lua')
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,9 @@ local actions = require('telescope.actions')
|
||||||
|
|
||||||
local picker_utils = require('cp.pickers')
|
local picker_utils = require('cp.pickers')
|
||||||
|
|
||||||
local function contest_picker(opts, platform)
|
local contest_picker, problem_picker
|
||||||
|
|
||||||
|
function contest_picker(opts, platform)
|
||||||
local constants = require('cp.constants')
|
local constants = require('cp.constants')
|
||||||
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
|
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
|
||||||
local contests = picker_utils.get_contests_for_platform(platform)
|
local contests = picker_utils.get_contests_for_platform(platform)
|
||||||
|
|
@ -57,7 +59,7 @@ local function contest_picker(opts, platform)
|
||||||
:find()
|
:find()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function problem_picker(opts, platform, contest_id)
|
function problem_picker(opts, platform, contest_id)
|
||||||
local constants = require('cp.constants')
|
local constants = require('cp.constants')
|
||||||
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
|
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
|
||||||
local problems = picker_utils.get_problems_for_contest(platform, contest_id)
|
local problems = picker_utils.get_problems_for_contest(platform, contest_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue