The definitive competitive programming environment for Neovim
Scrape problems, run tests, and debug solutions across multiple platforms with zero configuration.
[!NOTE] Due to GitHub's historic unreliability, development, issues, and pull requests have moved to Forgejo. See
:help cp.nvim-migrationto optionally update your plugin source configuration.
With vim.pack (Neovim 0.12+):
vim.pack.add({
'https://git.barrettruth.com/barrettruth/cp.nvim',
})
Or via luarocks:
luarocks install cp.nvim
:CP pick
:CP open
:CP run
:CP next
:CP prev
:CP e1
:CP edit
:CP panel --debug
:CP submit
:CP open standings
: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