some cleanups
This commit is contained in:
parent
0636757839
commit
355405e149
3 changed files with 4 additions and 7 deletions
|
|
@ -1,13 +1,10 @@
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.defaults = {
|
M.defaults = {
|
||||||
template_dir = nil,
|
|
||||||
contests = {
|
contests = {
|
||||||
atcoder = { cpp_version = 23 },
|
atcoder = { cpp_version = 23 },
|
||||||
codeforces = { cpp_version = 23 },
|
codeforces = { cpp_version = 23 },
|
||||||
cses = { cpp_version = 20 },
|
cses = { cpp_version = 20 },
|
||||||
icpc = { cpp_version = 20 },
|
|
||||||
usaco = { cpp_version = 17 },
|
|
||||||
},
|
},
|
||||||
snippets = {},
|
snippets = {},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ local function setup_python_env()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
local competition_types = { "atcoder", "codeforces", "cses", "icpc" }
|
local competition_types = { "atcoder", "codeforces", "cses", }
|
||||||
|
|
||||||
local function setup_contest(contest_type)
|
local function setup_contest(contest_type)
|
||||||
if not vim.tbl_contains(competition_types, contest_type) then
|
if not vim.tbl_contains(competition_types, contest_type) then
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
# cp.nvim
|
# cp.nvim
|
||||||
|
|
||||||
A Neovim plugin for competitive programming.
|
neovim plugin for competitive programming.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Support for multiple online judges (AtCoder, Codeforces, CSES, ICPC)
|
- Support for multiple online judges (AtCoder, Codeforces, CSES)
|
||||||
- Automatic problem scraping and test case management
|
- Automatic problem scraping and test case management
|
||||||
- Integrated build, run, and debug commands
|
- Integrated build, run, and debug commands
|
||||||
- Diff mode for comparing output with expected results
|
- Diff mode for comparing output with expected results
|
||||||
|
|
@ -13,7 +13,7 @@ A Neovim plugin for competitive programming.
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- Neovim 0.9+
|
- Neovim 0.9+
|
||||||
- `make` and a C++ compiler
|
- `make`
|
||||||
- (Optional) [uv](https://docs.astral.sh/uv/) for problem scraping
|
- (Optional) [uv](https://docs.astral.sh/uv/) for problem scraping
|
||||||
- (Optional) [LuaSnip](https://github.com/L3MON4D3/LuaSnip) for snippets
|
- (Optional) [LuaSnip](https://github.com/L3MON4D3/LuaSnip) for snippets
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue