No description
Find a file
2025-09-11 23:58:49 -05:00
.github/workflows ci too; 2025-09-11 23:57:59 -05:00
after initial commit 2025-09-11 23:52:32 -05:00
lua/cp ci too; 2025-09-11 23:57:59 -05:00
plugin initial commit 2025-09-11 23:52:32 -05:00
templates initial commit 2025-09-11 23:52:32 -05:00
.gitignore initial commit 2025-09-11 23:52:32 -05:00
.python-version initial commit 2025-09-11 23:52:32 -05:00
pyproject.toml initial commit 2025-09-11 23:52:32 -05:00
readme.md ci too; 2025-09-11 23:57:59 -05:00
selene.toml cleanup 2025-09-11 23:58:49 -05:00
uv.lock initial commit 2025-09-11 23:52:32 -05:00
vim.toml cleanup 2025-09-11 23:58:49 -05:00

cp.nvim

A Neovim plugin for competitive programming.

Features

  • Support for multiple online judges (AtCoder, Codeforces, CSES, ICPC)
  • Automatic problem scraping and test case management
  • Integrated build, run, and debug commands
  • Diff mode for comparing output with expected results
  • LuaSnip integration for contest-specific snippets

Requirements

  • Neovim 0.9+
  • make and a C++ compiler
  • (Optional) uv for problem scraping
  • (Optional) LuaSnip for snippets

Installation

Using lazy.nvim:

{
    "barrett-ruth/cp.nvim",
    cmd = "CP",
    dependencies = {
        "L3MON4D3/LuaSnip",
    }
}

Documentation

:help cp.nvim

TODO

  • vimdocs
  • example video
  • more flexible setup (more of a question of philosophy)
  • USACO support