This guide provides detailed instructions for installing, updating, and uninstalling NvChad for Neovim, along with additional setup for dotfiles for nvim + zsh.
Before proceeding with the installation, ensure the following prerequisites are met:
- Neovim 0.9.0: The latest version of Neovim.
- Nerd Font: Use a Nerd Font as your terminal font. Avoid fonts ending with 'Mono' to prevent small icons (e.g., use JetbrainsMono Nerd Font, not JetbrainsMono Nerd Font Mono).
- Ripgrep (Optional): Required for grep searching with Telescope.
- GCC: Windows users must have mingw installed and set on the path.
- Clang: If you want to use the formatting and debugger tools.
- Make: Windows users should have GnuWin32 installed and set on the path.
- Delete Old Neovim Folder: Remove any previous installations of Neovim (see commands below).
-
Delete the old Neovim folder:
rm -rf ~/.config/nvim rm -rf ~/.local/share/nvim
-
Install Neovim
brew install neovim # for MacOS sudo apt install neovim # for Linux
-
Delete your old configuation
Linux / MacOS (Unix)
rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.config/kitty
rm -rf ~/.config/neofetch
Windows
rd -r ~\AppData\Local\nvim
rd -r ~\AppData\Local\nvim-data
- Clone the repo
git clone https://github.com/BrendanGlancy/dotfiles.git ~/.config/ --depth 1 && nvim
gD = go to declaration
gd = go to definition
gi = implementation
ff = find files
fw = rip grep
fs = grep
K = definition
~/.local/share/nvim/mason/bin/clang-format --style Google --dump-config > .clang-format
Helpful link to find lspconfigs