# neovim + lazyvim Installation

## neovim

[https://github.com/neovim/neovim/blob/master/INSTALL.md](https://github.com/neovim/neovim/blob/master/INSTALL.md)

```bash
sudo apt install software-properties-common
# sudo add-apt-repository ppa:neovim-ppa/unstable
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt update
sudo apt install neovim
```

## lazyvim

[https://www.lazyvim.org/installation](https://www.lazyvim.org/installation)

```
# required
mv ~/.config/nvim{,.bak}
# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}

git clone https://github.com/LazyVim/starter ~/.config/nvim

rm -rf ~/.config/nvim/.git

```

```
nvim
```

It is recommended to run

```
:LazyHealth
```

after installation. This will load all plugins and check if everything is working correctly.

```
sudo apt-get install xclip
```