refactor lang to constants
This commit is contained in:
parent
6893271547
commit
5d630d9dac
6 changed files with 197 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue