Skip to main content

Neovim setup on Ubuntu with LazyVim / LunarVim and Nerd Fonts

 

Installing Nerd Fonts

wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/DejaVuSansMono.zip
sudo mkdir -p /usr/local/share/fonts/DejaVuSansMono
sudo unzip DejaVuSansMono.zip -d /usr/local/share/fonts/DejaVuSansMono

Settings a Nerd Font as your default font system wide

cat <<EOF >> /etc/fonts/local.conf
<match target="pattern">
  <test name="family" qual="any">
    <string>monospace</string>
  </test>
  <edit binding="strong" mode="prepend" name="family">
    <string>DejaVuSansM Nerd Font Mono</string>
  </edit>
</match>
EOF

 

 

-end