I have decided to try Neovim editor as I have heard a lot about it. I will be documenting my journey here. I am following LazyVim for Ambitious Developers as a guide.

Installing NeoVim

Adding fonts

Directly skipping to Setting up terminal font section as I am already using Ghostty terminal. Fonts can be installed from Nerd Fonts.

Not sure which fonts to install so for now installing all fonts using this script.

brew search '/font-.*-nerd-font/' | awk '{ print $1 }' | xargs -I{} brew install {} || true

Above command will install all NerdFonts.

Installing Neovim

I am using Homebrew on MacOS. I will install Neovim using brew install neovim.

After installing neovim, let’s remove the default configuration files as we want to use LazyVim.

rm -rf ~/.config/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.cache/nvim
rm -rf ~/.local/share/nvim

By default the config files are stored in ~/.config/nvim directory. If you want to change the location, you can set the environment variable NVIM_APPNAME to the folder name you want to use.

If you are using LazyVim, you can set the environment variable NVIM_APPNAME = lazyvim to use ~/.config/lazyvim as the config directory or rename lazyvim config folder to nvim.

Since, I’m planning to go all in with Neovim and LazyVim, I will just use the default ~/.config/nvim directory and clone the LazyVim repository there.

git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git
  • jesseduffield/lazygit - A simple terminal UI for git commands. Install using brew install lazygit.
  • BurntSushi/ripgrep - A search tool like grep and The Silver Searcher. Install using brew install ripgrep.
  • sharkdp/fd - A simple, fast and user-friendly alternative to find. Install using brew install fd.

Open Neovim using nvim

Managing Dotfiles

Go through this blog post to manage dotfiles using git.

I’ll go through above post later.

P.S. This post was not written using Neovim :)