fix(race): show platform in countdown and remove spaces from timer format
This commit is contained in:
parent
f5ae20b971
commit
da8af8704c
1 changed files with 8 additions and 4 deletions
|
|
@ -126,7 +126,11 @@ function M.start(platform, contest_id, language)
|
|||
require('cp.setup').setup_contest(p, c, nil, l)
|
||||
else
|
||||
vim.notify(
|
||||
('[cp.nvim]: %s starts in %s'):format(race_state.contest_name, format_countdown(r)),
|
||||
('[cp.nvim]: %s race "%s" starts in %s'):format(
|
||||
constants.PLATFORM_DISPLAY_NAMES[race_state.platform] or race_state.platform,
|
||||
race_state.contest_name,
|
||||
format_countdown(r)
|
||||
),
|
||||
vim.log.levels.INFO
|
||||
)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue