Description
Currently the documentation for Debian instructs you to do this,
sudo apt update
sudo apt install make gcc ripgrep unzip git
echo "deb https://deb.debian.org/debian unstable main" | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt install -t unstable neovim
The problem is this line,
echo "deb https://deb.debian.org/debian unstable main" | sudo tee -a /etc/apt/sources.list
That effectively moves you to the unstable version of debian. If you run apt-get dist-upgrade
and download all of your packages, and then you run the above code and you rerun apt-get dist-upgrade
you will be on the unstable version of Debian.
This is probably not what you want.
The problem that you're trying to solve is that Debian stable (right now "bookworm") ships Neovim 0.7.2. Unfortunately, there is no newer version of Neovim in the repository, nor in the backports repository (because of a shortage of manpower). However, upgrading your entire distribution to unstable is a very poor suggestion that can cause all kinds of problems and pain, including total failure.
At the very least, the user should be informed