LSP on attach
| Shortcut | Action |
|---|---|
| gd | Go to definition |
| ,fd | Find definitions (Telescope) |
| gr | Find references (Telescope) |
| ,rn | Rename symbol |
| ,ca | Code actions |
| ,f | Format buffer (conform.nvim, LSP fallback) |
| [d / ]d | Previous / next diagnostic |
| ,d | Show line diagnostics float |
| Ctrl+o | Jump back (built-in Vim) |
Telescope fuzzy finder
| Shortcut | Action |
|---|---|
| ,ff | Find files |
| ,fg | Live grep |
| ,fb | Find buffers |
| ,fh | Help tags |
| ,fr | Recent files (oldfiles) |
General & Files
| Shortcut | Mode | Action |
|---|---|---|
| ,w | Normal | Save file (:w!) |
| ,q | Normal | Quit all (:qa) |
| ,a | Normal | Select all (ggVG) |
| ,e | Normal | Toggle file tree (NvimTreeToggle) |
| ,t | Normal | Open terminal (:terminal) |
| ,db | Normal | Toggle Dbee database client |
| Esc | Normal | Clear search highlight (:nohlsearch) |
| eee | Cmd | Expand to edit <current-file-dir>/ |
Windows & Buffers
| Shortcut | Action |
|---|---|
| Alt+Arrows | Move to left/right/upper/lower pane |
| Ctrl+h/j/k/l | Move to left/lower/upper/right window |
| Ctrl+Up/Down | Resize window height (+2 / -2) |
| Ctrl+Left/Right | Resize window width (-2 / +2) |
| ,c | Close window (:close) |
| Shift+l | Next buffer (:bnext) |
| Shift+h | Previous buffer (:bprevious) |
| ,x | Close buffer (:bdelete) |
Navigation & Editing
| Shortcut | Mode | Action |
|---|---|---|
| j / k | N, V | Move by visual line (gj/gk), or exact line with count |
| J / K | Visual | Move selected lines down / up |
| < / > | Visual | Indent left / right (keeps selection) |
Autocompletion nvim-cmp
| Shortcut | Mode | Action |
|---|---|---|
| Ctrl+Space | Insert | Trigger completion |
| Enter | Insert | Confirm selection |
| Tab / Shift+Tab | I, S | Next / previous item (or jump snippet) |
| Ctrl+b / Ctrl+f | Insert | Scroll docs up / down |
| Ctrl+e | Insert | Abort completion |
Git
| Shortcut | Action |
|---|---|
| ,gb | Toggle inline git blame |
| ,gs | Stage hunk |
| ,gr | Reset hunk |
| ,gp | Preview hunk |
| ,gw | Switch git worktree (Telescope) |
| ,gW | Create git worktree (Telescope) |
Custom Commands
| Command | Action |
|---|---|
:W | Save file with sudo (SudaWrite) |
:Q | Force quit current window (:q!) |
:Qa / :QA | Force quit all (:qa!) |
:Dbee | Open Dbee database client |
:ConformInfo | Show active formatters (conform.nvim) |
Servers, Formatters & Linters
- LSPs:
pyrightts_lshtmlcsslsbashlsrust_analyzer - Formatters (on save):
ruff_organize_imports+ruff_format(Python),prettier(JS/TS/HTML/CSS/JSON/YAML/MD),shfmt(sh/bash),rustfmt(Rust),stylua(Lua) - Linters:
ruff+ty(Python),eslint_d(JS/TS),shellcheck(sh/bash)