-
Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Update brew:
brew update
-
Install Neovim:
brew install neovim
-
Install additional packages:
brew install git npm gnu-sed ripgrep jesseduffield/lazygit/lazygit
-
[Optional] Install
pre-commit
:brew install pre-commit
-
Update packages:
brew upgrade
-
Remove or move your current
nvim
directory (if exists)mv ~/.config/nvim ~/.config/nvim_bak
or
rm -rf ~/.config/nvim
-
Clear Neovim cache (if exists)
rm -rf ~/.local/share/nvim ~/.local/state/nvim ~/.cache/nvim
IMPORTANT Requires Neovim v0.10.0. Please upgrade if you're on an earlier version.
git clone git@github.com:Ninzalo/nvimconf.git ~/.config/nvim
Run nvim
and wait for the plugins to be installed. (You will notice treesitter pulling in a bunch of parsers the next time you open Neovim)
Open nvim
and enter the following:
:checkhealth
Next we need to install NerdFonts
-
Create directory
fonts
mkdir ~/.local/share/fonts
-
Copy
<FONTS DIRECTORY>/*
to~/.local/share/fonts
cp -rf ./<FONTS DIRECTORY>/* ~/.local/share/fonts/
-
Add to the profile of your terminal
pre-commit install
pre-commit autoupdate
pre-commit run --all-files
<Space>
- shows key mappings
-
ysiw)
- surround_words -> (surround_words) -
ds)
- (delete around me) -> delete around me -
cs'"
- 'change quotes' -> "change quotes"