I have been using Neovim for a few years, and the experience is revolutionary. For competitive programming, I have gone through many different text editors and IDEs, but in the end, landed on Neovim.
When I use Neovim for competitive programming, I use clangd for LSP and clang-format for formatting.
Prerequisites
There are a few packages that we must install before we can start configuring. To do this run the following commands.