feat(commands): add :CP <platform> signup subcommand

Problem: No quick way to reach a platform's registration page from
within Neovim.

Solution: Add `signup` as a platform subcommand that calls `vim.ui.open`
on the platform's registration URL. Works even when the platform is
disabled in config. URLs live in a new `SIGNUP_URLS` table in
`constants.lua`. Tab completion and vimdoc updated.
This commit is contained in:
Barrett Ruth 2026-03-06 16:08:17 -05:00
parent 82640709d6
commit e401c2863f
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 10 additions and 1 deletions

View file

@ -25,6 +25,15 @@ M.PLATFORM_DISPLAY_NAMES = {
usaco = 'USACO',
}
M.SIGNUP_URLS = {
atcoder = 'https://atcoder.jp/register',
codechef = 'https://www.codechef.com/register',
codeforces = 'https://codeforces.com/register',
cses = 'https://cses.fi/register',
kattis = 'https://open.kattis.com/register',
usaco = 'https://usaco.org/index.php?page=createaccount',
}
M.CPP = 'cpp'
M.PYTHON = 'python'