Custom Neovim configuration for macOS with NVChad-style UI and AI assistance.
# Clone repo
git clone https://github.com/cavaldos/neo-vim
cd neo-vim
# Backup old config (if exists)
mv ~ /.config/nvim ~ /.config/nvim-backup
# Copy new config
cp -r ./nvim ~ /.config/nvim
# Remove config
rm -rf ~ /.config/nvim
rm -rf ~ /.local/state/nvim
rm -rf ~ /.local/share/nvim
rm -rf ~ /.cache/nvim
Launch Neovim - Lazy will automatically install all plugins.
Symbol
Key
<leader>
, (comma)
<D>
Command (β)
<C>
Control
<CR>
Enter/Return
Key
Action
<D-z>
Undo
<D-S-Z>
Redo
<leader>cm
Copy messages to clipboard
<leader>tb
Toggle background transparency
<leader>?
Show buffer local keymaps
π File Explorer (Neo-tree)
Key
Action
<C-n>
Toggle Neo-tree
π Telescope (Fuzzy Finder)
Key
Action
<leader>ff
Find files
<leader>fg
Live grep
<leader>fb
Buffers
<leader>fc
Commands
<leader>fr
Recent files
<leader>fF
Git files (or regular files if not in git repo)
Key
Action
<leader>gs
Git status
<leader>gC
Git commits
<leader>gc
Buffer commits
<leader>gb
Git branches
<leader>gS
Git stash
Key
Action
<leader>ls
Document symbols
<leader>lS
Workspace symbols
<leader>lr
LSP references
<leader>li
LSP implementations
<leader>ld
Document diagnostics
<leader>lD
Workspace diagnostics
Key
Action
<leader>th
Choose colorscheme
Key
Action
<leader>fz
Files
<leader>g
Ripgrep
<leader>b
Buffers
<leader>h
History
<leader>l
Buffer lines
<leader>t
Tags
<leader>m
Marks
Key
Action
<Tab>
Accept suggestion (or insert literal)
<C-J>
Accept suggestion
<C-K>
Next suggestion
<C-H>
Previous suggestion
<C-L>
Dismiss suggestion
Key
Action
<F1>
Toggle terminal
<C-p>
Previous terminal buffer
<C-n>
Next terminal buffer
βοΈ Completion (nvim-cmp)
Key
Action
<C-Space>
Trigger completion
<CR>
Confirm completion
<C-b>
Scroll docs up
<C-f>
Scroll docs down
<C-e>
Abort completion
<Down>
Next item
<Up>
Previous item
π³ Code Structure (Aerial)
Key
Action
<C-a>
Toggle code outline
Key
Action
<D-f>
Format code (Neoformat)
Note: Neoformat auto-formats on save.
Action
Action
Click on Sign column
Open Telescope diagnostics
Installed via Mason:
eslint (ESLint)
sourcekit (Swift)
html (HTML)
clangd (C/C++)
ts_ls (TypeScript/JavaScript)
pyright (Python)
lua_ls (Lua)
rust_analyzer (Rust)
cssls (CSS)
Edit nvim/lua/config/keymaps.lua:
vim .g .mapleader = " ," -- Default is comma
Edit nvim/lua/chadrc.lua:
M .base46 = {
theme = " onedark" , -- Change to other theme
}
Neovim β₯ 0.9
macOS
Git
fd - Replace find for Telescope
rg - Ripgrep for search
fzf - Fuzzy finder
Install via Homebrew:
brew install neovim fd ripgrep fzf
# View logs
:nvim -l logs
# Sync plugins
:Lazy sync
# Check health
:checkhealth
Based on NvChad and plugins from the community.