curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
sudo tar -C /usr/local/ -xzf nvim-linux64.tar.gz --strip-components=1
rm nvim-linux64.tar.gz
git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git
Removing the .git
folder allows you to add LazyVim template to your GitHub account.
Install fonts in Windows
- Download Nerd Fonts
.zip
file on Windows. E.g., SauceCodePro Nerd Fonts. - Extract the
.zip
file contents into a folder. - Go to Windows Settings menu > Personalisation > Fonts.
- Notice the dotted rectangle in the Fonts screen.
- Select all the TrueType font
.ttf
files, drag and drop to the dotted rectangle in Fonts screen.
Configure WSL Ubuntu profile in Windows Terminal to use Nerd Fonts.
- Open Windows Terminal app.
- Go to Settings.
- On the left hand side, under
Profiles
section, select the Ubuntu profile. E.g., Ubuntu-22.04. - On the right hand side, under
Additional settings
section, selectAppearance
. - In the
Appearance
page, go toText
>Font face
.- Check the
Show all fonts
checkbox. - Select
SauceCodePro Nerd Fonts
and clickSave
.
- Check the
Re-open Windows Terminal > Ubuntu.
nvim
You will be greeted with the LazyVim main screen below.
To exit, press q
.