Manually compiling, running, and testing each testcase wastes a lot of time. So here's my workflow that I've been using for years. Maybe some part of this can improve your workflow as well.
Note: This is a C++ based workflow, but with minor tweaks, you can use this for any other language.
Links
- Competitest: Neovim Plugin
- My Nvim Config: Contains my snippets and plugin keybinds
- Competitive Companion: Browser extension
Workflow
- Create a file (e.g.,
a.cpp). - Press
<leader>rt(my keybind) to receive the testcases. - Press the Competitive Companion extension on your browser to parse the testcases.
- Type
cpand hit enter, which triggers the nvim snippet. - Write your solution.
- Press
<leader>tr(my other keybind) to run the testcases. - You'll see a UI pop up that clearly shows the passed and failed testcases.
If you have any questions about adapting these Lua configurations for your own setup, feel free to ask below!








Crazy