NvChad is a highly customizable Neovim configuration that comes with a variety of plugins and features. Here’s a cheat sheet with some common tasks related to NvChad:
Installation
Clone the NvChad Repository:
git clone --depth=1 https://github.com/NvChad/NvChad ~/.config/nvim
Install Packer (Plugin Manager):
git clone https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
Basic Keybindings
Open/Close Nvim Configuration:
<Space>ne
Open/Close File Explorer:
<Space>e
Toggle Terminal:
<Space>t
Plugin Management
Update Plugins:
:PackerUpdate
Install New Plugins:
:PackerInstall
Clean Unused Plugins:
:PackerClean
LSP (Language Server Protocol)
Hover Documentation:
K
Go to Definition:
gd
Rename Symbol:
<Space>rn
Fuzzy Finder (Telescope)
Find Files:
<Space>ff
Live Grep:
<Space>fg
Find Buffers:
<Space>fb
Git Integration
Git Status:
<Space>gs
Git Blame:
<Space>gb
Other Useful Commands
Toggle Line Numbers:
<Space>tn
Toggle Spell Check:
<Space>ts
Toggle Zen Mode:
<Space>zm
Troubleshooting
Reload NvChad Configuration:
<Space>sc
Open NvChad Help Documentation:
<Space>hh
Terminal Commands
Open Terminal:
:term
Switch between Terminals:
<Space>1, <Space>2, ... <Space>9
Customization
Edit NvChad Configuration:
<Space>ee
This opens the init.lua
file for editing.
Custom Keybindings: You can customize keybindings in the keybindings.lua
file.
These commands should help you get started with NvChad. Remember to review the official NvChad documentation for more details and customization options.