refactor lang to constants

This commit is contained in:
Barrett Ruth 2025-09-15 18:07:00 -04:00
parent 6893271547
commit 5d630d9dac
6 changed files with 197 additions and 9 deletions

View file

@ -29,8 +29,9 @@ local state = {
test_states = {},
}
local platforms = { "atcoder", "codeforces", "cses" }
local actions = { "run", "debug", "next", "prev" }
local constants = require("cp.constants")
local platforms = constants.PLATFORMS
local actions = constants.ACTIONS
local function set_platform(platform)
if not vim.tbl_contains(platforms, platform) then