No description
|
|
||
|---|---|---|
| .github/workflows | ||
| after/ftplugin | ||
| doc | ||
| lua/cp | ||
| plugin | ||
| scrapers | ||
| scripts | ||
| spec | ||
| tests/scrapers | ||
| .busted | ||
| .editorconfig | ||
| .gitignore | ||
| .luarc.json | ||
| .pre-commit-config.yaml | ||
| .python-version | ||
| cp.nvim-scm-1.rockspec | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| selene.toml | ||
| stylua.toml | ||
| uv.lock | ||
| vim.toml | ||
cp.nvim
The definitive competitive programming environment for Neovim
Scrape problems, run tests, and debug solutions across multiple platforms with zero configuration.
https://github.com/user-attachments/assets/50b19481-8e6d-47b4-bebc-15e16c61a9c9
Features
- Multi-platform support: AtCoder, Codeforces, CSES with consistent interface
- Automatic problem setup: Scrape test cases and metadata in seconds
- Rich test output: 256 color ANSI support for compiler errors and program output
- Language agnostic: Works with any language
- Diff viewer: Compare expected vs actual output with 3 diff modes
Optional Dependencies
Quick Start
cp.nvim follows a simple principle: solve locally, submit remotely.
Basic Usage
-
Find a contest or problem on the judge website
-
Set up locally with
:CP <platform> <contest>:CP codeforces 1848 -
Code and test with instant feedback and rich diffs
:CP run -
Navigate between problems
:CP next :CP prev :CP e1 -
Submit on the original website
Documentation
:help cp.nvim
See my config for a relatively advanced setup.