No description
Find a file
2025-09-11 23:52:32 -05:00
after initial commit 2025-09-11 23:52:32 -05:00
lua/cp initial commit 2025-09-11 23:52:32 -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 initial commit 2025-09-11 23:52:32 -05:00
selene.toml initial commit 2025-09-11 23:52:32 -05:00
stylua.toml initial commit 2025-09-11 23:52:32 -05:00
uv.lock initial commit 2025-09-11 23:52:32 -05:00
vim.toml initial commit 2025-09-11 23:52:32 -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

  • USACO support