No description
Find a file
2025-09-13 09:11:13 +02:00
.github/workflows fix(ci): point to luarc 2025-09-12 17:40:54 -05:00
after feat: include versioning 2025-09-13 00:39:53 -05:00
doc feat: fix naming 2025-09-13 00:25:03 -05:00
lua/cp fix snippets 2025-09-13 02:08:51 -05:00
plugin feat(ci): Format 2025-09-13 00:41:51 -05:00
scrapers fix formatting; 2025-09-12 17:20:38 -05:00
.gitignore fix: no claude files 2025-09-12 17:35:53 -05:00
.luarc.json fix(ci): vim typing 2025-09-12 17:39:28 -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 fix snippets 2025-09-13 02:08:51 -05:00
selene.toml fix ci 2025-09-12 00:13:50 -05:00
uv.lock initial commit 2025-09-11 23:52:32 -05:00
vim.toml fix ci 2025-09-12 00:13:50 -05:00

cp.nvim

neovim plugin for competitive programming.

https://private-user-images.githubusercontent.com/62671086/489116291-391976d1-c2f4-49e6-a79d-13ff05e9be86.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTc3NDQ1ODEsIm5iZiI6MTc1Nzc0NDI4MSwicGF0aCI6Ii82MjY3MTA4Ni80ODkxMTYyOTEtMzkxOTc2ZDEtYzJmNC00OWU2LWE3OWQtMTNmZjA1ZTliZTg2Lm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTEzVDA2MTgwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0Zjc0YmQzNWIzNGZkM2VjZjM3NGM0YmZmM2I3MmJkZGQ0YTczYjIxMTFiODc3MjQyMzY3ODc2ZTUxZDRkMzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MBK5q_Zxr0gWuzfjwmSbB7P7dtWrATrT5cDOosdPRuQ

Sample test data from codeforces is scraped via cloudscraper. Use at your own risk.

Features

  • Support for multiple online judges (AtCoder, Codeforces, CSES)
  • 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.10.0+
  • uv: problem scraping (optional)
  • LuaSnip: contest-specific snippets (optional)

Documentation

:help cp.nvim

TODO

  • finer-tuned problem limits (i.e. per-problem codeforces time, memory)
  • better highlighting
  • test case management
  • USACO support