No description
Find a file
2025-12-08 19:16:37 -06:00
.github/workflows install deps 2025-12-08 00:44:44 -06:00
after/ftplugin rename and simplify things 2025-10-05 11:59:24 -04:00
doc fix 2025-11-04 23:39:43 -05:00
lua/cp fix: cleanup picker message 2025-12-04 18:12:10 -05:00
plugin fix(config): padding spacing 2025-10-24 14:44:33 -04:00
scrapers fix(scraper): done 2025-12-08 00:20:48 -06:00
scripts fix: cleanup script 2025-10-24 16:17:56 -04:00
tests some misc fixes 2025-12-07 16:09:17 -06:00
.editorconfig fix: imports 2025-09-18 20:12:01 -04:00
.envrc feat: add envrc 2025-12-07 16:19:42 -06:00
.gitignore fix(git): ignore node_modules 2025-12-04 18:10:22 -05:00
.luarc.json fix: rename 2025-10-23 22:17:49 -04:00
.pre-commit-config.yaml some misc fixes 2025-12-07 16:09:17 -06:00
.prettierignore some misc fixes 2025-12-07 16:09:17 -06: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 some misc fixes 2025-12-07 16:09:17 -06:00
README.md some misc fixes 2025-12-07 16:09:17 -06: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 some misc fixes 2025-12-07 16:09:17 -06:00
vim.toml fix(ci): some type errors 2025-09-19 14:04:37 -04:00

cp.nvim

NOTE: [scrapling] is currently down - CodeForces scraping will not work (for now). Track the issue here.

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/e81d8dfb-578f-4a79-9989-210164fc0148

Features

  • Multi-platform support: AtCoder, CodeChef, Codeforces, and CSES
  • 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
  • Test case management: Quickly view, edit, add, & remove test cases
  • 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

  2. Set up contests locally

    :CP codeforces 1848
    
  3. Code and test

    :CP run
    
  4. Navigate between problems

    :CP next
    :CP prev
    :CP e1
    
  5. Debug and edit test cases

:CP edit
:CP panel --debug
  1. Submit on the original website

Documentation

:help cp.nvim

See my config for the setup in the video shown above.

Similar Projects