No description
Find a file
2025-10-24 16:35:00 -04:00
.github/workflows fix: rename 2025-10-23 22:17:49 -04:00
after/ftplugin rename and simplify things 2025-10-05 11:59:24 -04:00
doc feat(ui): documentation for :CP edit abilities 2025-10-24 16:35:00 -04:00
lua/cp feat(ui): documentation for :CP edit abilities 2025-10-24 16:35:00 -04:00
plugin fix(config): padding spacing 2025-10-24 14:44:33 -04:00
scrapers fix(ci): regex 2025-10-23 22:24:39 -04:00
scripts fix: cleanup script 2025-10-24 16:17:56 -04:00
spec fix: rename run panel to panel 2025-10-23 09:54:55 -04:00
tests fix(ci): format 2025-10-23 22:12:23 -04:00
.busted fix(ci): revamp 2025-09-18 19:59:07 -04:00
.editorconfig fix: imports 2025-09-18 20:12:01 -04:00
.gitignore fix: open problem-specific url 2025-10-15 11:00:31 -04:00
.luarc.json fix: rename 2025-10-23 22:17:49 -04:00
.pre-commit-config.yaml fix: rename 2025-10-23 22:17:49 -04:00
.prettierignore fix: ignore fixtures 2025-10-23 22:31:23 -04:00
.prettierrc fix: scrapers 2025-10-05 22:10:26 -04:00
.python-version initial commit 2025-09-11 23:52:32 -05:00
cp.nvim-scm-1.rockspec remove; 2025-09-18 20:17:51 -04:00
LICENSE fix(ci): format 2025-09-18 20:04:36 -04:00
pyproject.toml feat(tests): basic tests 2025-10-05 21:58:43 -04:00
README.md fix(docs): update for new features 2025-10-23 20:40:59 -04:00
selene.toml fix(ci): fix the tests 2025-09-19 18:46:00 -04:00
stylua.toml fix: imports 2025-09-18 20:12:01 -04:00
uv.lock feat(tests): basic tests 2025-10-05 21:58:43 -04:00
vim.toml fix(ci): some type errors 2025-09-19 14:04:37 -04:00

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
  • Dual view modes: Lightweight I/O view for quick feedback, full panel for detailed analysis
  • 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

  1. Find a contest or problem on the judge website

  2. Set up locally with :CP <platform> <contest>

    :CP codeforces 1848
    
  3. Code and test with instant feedback

    :CP run        " Quick verdict summary in splits
    :CP panel      " Detailed analysis with diffs
    
  4. Navigate between problems

    :CP next
    :CP prev
    :CP e1
    
  5. Submit on the original website

Documentation

:help cp.nvim

See my config for a relatively advanced setup.

Similar Projects