Update README.txtt

This commit is contained in:
2025-08-14 01:55:53 +00:00
parent c131f77b83
commit 887b03f109

View File

@@ -320,17 +320,220 @@
3. gd = Go to definition | K = Show docs | Space ca = Code actions
4. Space ccq = AI chat | Ctrl+J = Accept AI | Space cce = Explain code
🔥 PRO TIPS:
- Leader (Space) shows all available commands when pressed
- Use :help <command> for detailed help on any command
- :checkhealth to verify your setup is working correctly
- Most commands work in combination (operators + motions)
- Visual mode first, then action for selections
# 🚀 ULTIMATE NvChad CHEAT SHEET 🚀
**Complete Reference - All Plugins & Vim**
**Leader Key:** `SPACE`
💡 REMEMBER:
- Vim is modal (Normal/Insert/Visual/Command modes)
- Motions: w(word) e(end) b(back) 0($) ^($) gg(G) f(F) t(T)
- Operators: d(delete) y(yank) c(change) >(indent) <(unindent)
- Text objects: i/a + w(word) s(sentence) p(paragraph) b(block)
---
🚀 Master the basics first, then gradually learn advanced features!
## 🔥 ESSENTIAL WORKFLOW
| Key | Action |
|-----|--------|
| `Space` | Show all keys |
| `Space ff` | Find files |
| `Space fw` | Live grep (search in files) |
| `Ctrl+n` | Toggle tree |
| `Space e` | Focus tree |
| `Tab` | Next buffer |
| `Shift+Tab` | Prev buffer |
| `Space x` | Close buffer |
| `Ctrl+s` | Save file |
| `gd` | Go to definition |
| `K` | Show docs |
---
## 📁 FILES & SEARCH
| Key | Action |
|-----|--------|
| `Space ff` | Find files |
| `Space fa` | Find all files (+ hidden) |
| `Space fw` | Live grep (search in files) |
| `Space fb` | Find buffers |
| `Space fh` | Help pages |
| `Space fo` | Find recent files |
| `Space fz` | Find in current buffer |
| `Space cm` | Git commits |
| `Space gt` | Git status |
| `/text` | Search in file |
| `*` | Search word under cursor |
---
## 🤖 COPILOT AI
| Key | Action |
|-----|--------|
| `Ctrl+J` | Accept suggestion |
| `Ctrl+]` | Next suggestion |
| `Ctrl+[ ` | Prev suggestion |
| `Ctrl+\` | Trigger Copilot |
| `:Copilot auth` | Authenticate |
| `:Copilot stat` | Status |
| `:Copilot en` / `:Copilot dis` | Enable / Disable |
---
## 💬 COPILOT CHAT
| Key | Action |
|-----|--------|
| `Space ccq` | Quick chat (ask anything) |
| `Space cci` | Custom input chat |
| `Space cce` | Explain selected code |
| `Space ccr` | Review selected code |
| `Space ccR` | Refactor / optimize code |
| `Space cct` | Generate tests |
| `Space ccf` | Fix diagnostics |
| `Space ccn` | Better naming suggestions |
| `Space ccv` | Toggle chat window |
| `Space ccl` | Clear chat history |
| `Space ccm` | Generate commit message (all) |
| `Space ccM` | Generate commit message (staged) |
| `Space cch` | Help actions (Telescope) |
| `Space ccp` | Prompt actions (Telescope) |
---
## 🧭 CODE NAVIGATION
| Key | Action |
|-----|--------|
| `gd` | Go to definition |
| `gD` | Go to declaration |
| `gi` | Go to implementation |
| `gr` | Find references |
| `K` | Hover docs |
| `Ctrl+k` | Signature help |
| `Space D` | Type definition |
| `Ctrl+o` | Jump back |
| `Ctrl+i` | Jump forward |
| `Space s` | Symbol search |
| `Space ds` | Document symbols |
| `Space ws` | Workspace symbols |
---
## ⚡ LSP & DIAGNOSTICS
| Key | Action |
|-----|--------|
| `Space ca` | Code actions |
| `Space ra` | Rename symbol |
| `Space f` | Format document |
| `Space fm` | Format selection |
| `[d` | Previous diagnostic |
| `]d` | Next diagnostic |
| `Space e` | Show line diagnostics |
| `Space q` | Diagnostic quickfix list |
| `:LspInfo` | LSP information |
| `:checkhealth` | Check Neovim health |
---
## 🪟 WINDOWS & BUFFERS
| Key | Action |
|-----|--------|
| `Ctrl+h/j/k/l` | Move between windows |
| `Space v` | Vertical split |
| `Space h` | Horizontal split |
| `Tab` | Next buffer |
| `Shift+Tab` | Previous buffer |
| `Space x` | Close buffer |
| `Space b` | New buffer |
| `Ctrl+w c` | Close window |
| `Ctrl+w o` | Close others |
| `Ctrl+w =` | Equal windows |
---
## 💻 TERMINAL
| Key | Action |
|-----|--------|
| `Alt+h` | Toggle horizontal terminal |
| `Alt+v` | Toggle vertical terminal |
| `Alt+i` | Toggle floating terminal |
| `Ctrl+\` | Toggle terminal |
| `esc esc` | Exit terminal insert mode |
| `:term` | Open terminal |
---
## 🌳 FILE TREE (NvimTree)
| Key | Action |
|-----|--------|
| `Enter/o` | Open file |
| `Ctrl+v` | Open vertical split |
| `Ctrl+x` | Open horizontal split |
| `Ctrl+t` | Open in new tab |
| `a` | Create file |
| `A` | Create folder |
| `d` | Delete |
| `r` | Rename |
| `c` | Copy |
| `x` | Cut |
| `p` | Paste |
| `y` | Copy name |
| `Y` | Copy relative path |
| `gy` | Copy absolute path |
| `H` | Toggle hidden |
| `I` | Toggle ignore |
| `R` | Refresh |
| `W` | Collapse all |
| `E` | Expand all |
| `q` | Close tree |
---
## 🔭 TELESCOPE
| Key | Action |
|-----|--------|
| `Ctrl+n/p` | Next/Previous item |
| `Ctrl+j/k` | Move down/up |
| `Enter` | Select item |
| `Ctrl+v` | Open in vertical split |
| `Ctrl+x` | Open in horizontal split |
| `Ctrl+t` | Open in new tab |
| `Ctrl+c` / `Esc` | Close telescope |
| `Tab` | Toggle selection |
| `Ctrl+q` | Send to quickfix |
---
## 🎯 AUTO-COMPLETION (cmp)
| Key | Action |
|-----|--------|
| `Ctrl+n` | Next item |
| `Ctrl+p` | Previous item |
| `Ctrl+Space` | Trigger completion |
| `Enter` | Confirm selection |
| `Ctrl+e` | Close menu |
| `Ctrl+d/f` | Scroll docs down/up |
| `Tab` | Next snippet |
| `Shift+Tab` | Prev snippet |
| `Ctrl+y` | Confirm |
| `Ctrl+[ ` | Cancel |
---
## 📝 COMMENTS & EDITING
| Key | Action |
|-----|--------|
| `gcc` | Toggle line comment |
| `gc` (visual) | Toggle comment selection |
| `gbc` | Toggle block comment |
| `gb` (visual) | Toggle block selection |
| `Space /` | Toggle comment line |
| `dd` | Delete line |
| `yy` | Yank (copy) line |
| `p` | Paste after |
| `P` | Paste before |
| `u` | Undo |
| `Ctrl+r` | Redo |
| `.` | Repeat last command |
---
💡 **Pro Tips**
- Press `Space` to see all options with **which-key**
- `:help <command>` for detailed help
- `:checkhealth` to verify setup
- Operators + motions = power moves (e.g., `daw`, `yap`)
---