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
Install using your package manager of choice or via luarocks:
luarocks install cp.nvim
cp.nvim follows a simple principle: solve locally, submit remotely.
Find a contest or problem
Set up contests locally
:CP codeforces 1848
Code and test
:CP run
Navigate between problems
:CP next
:CP prev
:CP e1
Debug and edit test cases
:CP edit
:CP panel --debug
:help cp.nvim
See my config for the setup in the video shown above.
I could not find a neovim-centric, efficient, dependency-free, flexible, and easily customizable competitive programming workflow that "just works"--so I made it myself. I conferenced with top competitive programmers at Carnegie Mellon Univerity and the University of Virginia and covered their (and my) pain points:
:CP edit)run and panel layouts cover common formats