Update README.md
This commit is contained in:
488
README.md
488
README.md
@@ -1,307 +1,187 @@
|
||||
***
|
||||
# 🚀 Neovim Keybindings Cheatsheet
|
||||
|
||||
**Leader Key:** `<Space>`
|
||||
|
||||
## 📝 General & Basic Navigation
|
||||
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<Space>` | n | Leader Key | Main leader key |
|
||||
| `;` | n | `:` | Enter command mode |
|
||||
| `jk` | i | `<ESC>` | Exit insert mode |
|
||||
| `<Esc>` | n | Clear highlights | Remove search highlights |
|
||||
| `<C-s>` | n | Save file | Save current file |
|
||||
| `<C-c>` | n | Copy whole file | Copy entire file to clipboard |
|
||||
|
||||
## 🔢 Line Numbers
|
||||
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>n` | n | Toggle line numbers | Show/hide line numbers |
|
||||
| `<leader>rn` | n | Toggle relative numbers | Show/hide relative line numbers |
|
||||
|
||||
## 🚪 Window Navigation
|
||||
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<C-h>` | n | Switch window left | Move to left window |
|
||||
| `<C-l>` | n | Switch window right | Move to right window |
|
||||
| `<C-j>` | n | Switch window down | Move to window below |
|
||||
| `<C-k>` | n | Switch window up | Move to window above |
|
||||
|
||||
## ✏️ Insert Mode Navigation
|
||||
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<C-b>` | i | Move to beginning of line | Go to start of line |
|
||||
| `<C-e>` | i | Move to end of line | Go to end of line |
|
||||
| `<C-h>` | i | Move left | Move cursor left |
|
||||
| `<C-l>` | i | Move right | Move cursor right |
|
||||
| `<C-j>` | i | Move down | Move cursor down |
|
||||
| `<C-k>` | i | Move up | Move cursor up |
|
||||
|
||||
## 📂 Buffer Management (Tabufline)
|
||||
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>b` | n | New buffer | Create new empty buffer |
|
||||
| `<Tab>` | n | Next buffer | Switch to next buffer |
|
||||
| `<S-Tab>` | n | Previous buffer | Switch to previous buffer |
|
||||
| `<leader>x` | n | Close buffer | Close current buffer |
|
||||
|
||||
## 💬 Comments
|
||||
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>/` | n | Toggle comment | Comment/uncomment current line |
|
||||
| `<leader>/` | v | Toggle comment | Comment/uncomment selected lines |
|
||||
|
||||
## 🌳 File Explorer (NvimTree)
|
||||
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<C-n>` | n | Toggle NvimTree | Open/close file explorer |
|
||||
| `<leader>e` | n | Focus NvimTree | Focus on file explorer |
|
||||
|
||||
## 🔍 Telescope (Fuzzy Finder)
|
||||
|
||||
# 🚀 ULTIMATE NvChad CHEAT SHEET (Remapped) 🚀
|
||||
> **Complete Reference - All Plugins & Vim**
|
||||
> **Leader Key: SPACE**
|
||||
***
|
||||
## 🔥 Essential Workflow
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `Space` | Show all keys | `Space ff` | Find files |
|
||||
| `Space ff` | Find files | `Space fa` | Find all files (+ hidden) |
|
||||
| `Space fw` | Find text | `Space fw` | Live grep (search in files) |
|
||||
| `c-n` | Toggle tree | `Space fb` | Find buffers |
|
||||
| `Space e` | Focus tree | `Space fh` | Help pages |
|
||||
| `Tab` | Next buffer | `Space fo` | Find recent files |
|
||||
| `Shift+Tab` | Prev buffer | `Space fz` | Find in current buffer |
|
||||
| `Space x` | Close buffer | `Space cm` | Git commits |
|
||||
| `c-s` | Save file | `Space gt` | Git status |
|
||||
| `gd` | Go definition | `/text` | Search in file |
|
||||
| `K` | Show docs | `*` | Search word under cursor |
|
||||
***
|
||||
## 🤖 Copilot AI
|
||||
### Basic Copilot
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `c-j` | Accept suggest | `Space ccq` | Quick chat (ask anything) |
|
||||
| `c-]` | Next suggest | `Space cci` | Custom input chat |
|
||||
| `c-[` | Prev suggest | `Space cce` | Explain selected code |
|
||||
| `c-\` | Trigger | `Space ccr` | Review selected code |
|
||||
### Copilot Commands
|
||||
| Command | Action |
|
||||
|---------|--------|
|
||||
| `:Copilot auth` | Authenticate |
|
||||
| `:Copilot status` | Status |
|
||||
| `:Copilot enable/disable` | Enable/Disable |
|
||||
***
|
||||
## 💬 CopilotChat
|
||||
### Chat Commands
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `Space ccq` | Quick chat (ask anything) | `Space ccm` | Generate commit msg (all) |
|
||||
| `Space cci` | Custom input chat | `Space ccM` | Generate commit msg (staged) |
|
||||
| `Space cce` | Explain selected code | `Space cch` | Help actions (Telescope) |
|
||||
| `Space ccr` | Review selected code | `Space ccp` | Prompt actions (Telescope) |
|
||||
| `Space ccR` | Refactor/optimize code | `Space ccv` | Toggle chat window |
|
||||
| `Space cct` | Generate tests | `Space ccl` | Clear chat history |
|
||||
| `Space ccf` | Fix diagnostics | `Space ccd` | Debug info |
|
||||
| `Space ccn` | Better naming suggestions | | |
|
||||
### Chat Window Controls
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `q` | Close chat | `gy` | Yank diff |
|
||||
| `c-l` | Reset chat | `gd` | Show diff |
|
||||
| `l` | Submit prompt | `gp` | Show system prompt |
|
||||
| `c-y` | Accept diff | `gs` | Show user selection |
|
||||
***
|
||||
## 🧭 Code Navigation
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `gd` | Go definition | `Space ca` | Code actions |
|
||||
| `gD` | Go declaration | `Space ra` | Rename symbol |
|
||||
| `gi` | Go implement | `Space f` | Format document |
|
||||
| `gr` | Find reference | `Space fm` | Format selection |
|
||||
| `K` | Hover docs | `[d` | Previous diagnostic |
|
||||
| `c-k` | Signature help | `]d` | Next diagnostic |
|
||||
| `Space D` | Type definition | `Space e` | Show line diagnostics |
|
||||
| `c-o` | Jump back | `Space q` | Diagnostic quickfix list |
|
||||
| `c-i` | Jump forward | `Space wa` | Add workspace folder |
|
||||
### LSP Commands
|
||||
| Command | Action |
|
||||
|---------|--------|
|
||||
| `:LspInfo` | LSP information |
|
||||
| `:checkhealth` | Check Neovim health |
|
||||
***
|
||||
## 🪟 Windows & Buffers
|
||||
### Window Navigation
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `c-h` | Left window | `Space v` | Vertical split |
|
||||
| `c-j` | Down window | `Space h` | Horizontal split |
|
||||
| `c-k` | Up window | `c-w c` | Close window |
|
||||
| `c-l` | Right window | `c-w o` | Close others |
|
||||
### Buffer Management
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `Tab` | Next buffer | `Space x` | Close buffer |
|
||||
| `Shift+Tab` | Previous buffer | `Space b` | New buffer |
|
||||
| `c-w e` | Equal windows | | |
|
||||
***
|
||||
## 💻 Terminal
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `a-h` | Toggle horizontal terminal | `Space h` | New horizontal terminal |
|
||||
| `a-v` | Toggle vertical terminal | `Space v` | New vertical terminal |
|
||||
| `a-i` | Toggle floating terminal | `exit` | Exit terminal mode |
|
||||
| `c-\` | Toggle terminal | `jk jk` | Exit terminal insert mode |
|
||||
### Terminal Commands
|
||||
| Command | Action |
|
||||
|---------|--------|
|
||||
| `:term` | Open terminal |
|
||||
| `:split term://` | Horizontal terminal split |
|
||||
| `:vsplit term://` | Vertical terminal split |
|
||||
***
|
||||
## 🌳 File Tree (NvimTree)
|
||||
### Navigation
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `l`/`o` | Open file | `c-v` | Open vertical |
|
||||
| `c-x` | Open horizontal | `c-t` | Open new tab |
|
||||
### File Operations
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `a` | Create file | `c` | Copy |
|
||||
| `A` | Create folder | `x` | Cut |
|
||||
| `d` | Delete | `p` | Paste |
|
||||
| `r` | Rename | `y` | Copy name |
|
||||
| `c-r` | Full rename | `Y` | Copy rel path |
|
||||
| `gy` | Copy abs path | | |
|
||||
### View Options
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `H` | Toggle hidden | `R` | Refresh |
|
||||
| `I` | Toggle ignore | `W` | Collapse all |
|
||||
| `E` | Expand all | `q` | Close tree |
|
||||
***
|
||||
## 🔭 Telescope
|
||||
### Navigation
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `c-n`/`p` | Next/Previous item | `l` | Select item |
|
||||
| `c-j`/`k` | Move down/up | `c-v` | Open in vertical split |
|
||||
| `c-x` | Open in horizontal split | `c-t` | Open in new tab |
|
||||
| `c-c`/`jk` | Close telescope | `Tab` | Toggle selection |
|
||||
| `c-q` | Send to quickfix | `?` | Show help |
|
||||
### Preview Controls
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `c-u` | Scroll preview up | `c-/` | Toggle preview |
|
||||
| `c-d` | Scroll preview down | `M` | Toggle mark |
|
||||
***
|
||||
## 🎯 Auto-completion (nvim-cmp)
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `c-n` | Next item | `Tab` | Next (snippets) |
|
||||
| `c-p` | Previous item | `Shift+Tab` | Prev (snippets) |
|
||||
| `c-Space` | Trigger comp | `c-y` | Confirm |
|
||||
| `l` | Confirm select | `c-[` | Cancel |
|
||||
| `c-e` | Close menu | `c-d` | Scroll docs down |
|
||||
| `c-f` | Scroll docs up | | |
|
||||
***
|
||||
## 📝 Comments & Editing
|
||||
### Comments
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `gcc` | Toggle line comment | `Space /` | Toggle comment line |
|
||||
| `gc` (visual) | Toggle comment (selection) | | |
|
||||
| `gbc` | Toggle block comment | | |
|
||||
| `gb` (visual) | Toggle block (selection) | | |
|
||||
### Basic Editing
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `i` | Insert before cursor | `o` | New line below |
|
||||
| `I` | Insert at line start | `O` | New line above |
|
||||
| `a` | Append after cursor | `c` | Change operator |
|
||||
| `A` | Append at line end | `s` | Substitute character |
|
||||
| `S` | Substitute line | `dd` | Delete line |
|
||||
| `yy` | Yank (copy) line | `p` | Paste after |
|
||||
| `P` | Paste before | `u` | Undo |
|
||||
| `c-r` | Redo | `.` | Repeat last command |
|
||||
***
|
||||
## 🌈 Treesitter & Text Objects
|
||||
### Text Objects
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `af` | Around function | `ab` | Around block |
|
||||
| `if` | Inside function | `ib` | Inside block |
|
||||
| `ac` | Around class | `aa` | Around argument |
|
||||
| `ic` | Inside class | `ia` | Inside argument |
|
||||
### Selection
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `c-Space` | Init selection | `l` | Expand select |
|
||||
| `Backspace` | Shrink select | `Tab` | Expand scope |
|
||||
***
|
||||
## 🔄 Git Integration (Gitsigns)
|
||||
### Hunk Navigation
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `]c` | Next hunk | `Space hs` | Stage hunk |
|
||||
| `[c` | Previous hunk | `Space hr` | Reset hunk |
|
||||
| `Space hS` | Stage buffer | `Space hu` | Undo stage hunk |
|
||||
| `Space hR` | Reset buffer | `Space hp` | Preview hunk |
|
||||
### Git Actions
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `Space hb` | Blame line | `Space hd` | Diff this |
|
||||
| `Space tb` | Toggle blame | `Space hD` | Diff this \~ |
|
||||
| `Space td` | Toggle deleted | `ih` | Inside hunk (text object) |
|
||||
| `ah` | Around hunk (text object) | | |
|
||||
***
|
||||
## 🎨 Themes & UI
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `Space th` | Theme switcher | `Space n` | Toggle numbers |
|
||||
| `Space tt` | Toggle transparency | `Space rn` | Toggle rel numbers |
|
||||
| `Space ch` | NvChad help | `Space i` | Indent guide |
|
||||
| `Space nu` | Update NvChad | `Space wk` | Which-key |
|
||||
***
|
||||
## 🛠️ Mason & Plugins
|
||||
### Mason Commands
|
||||
| Command | Action |
|
||||
|---------|--------|
|
||||
| `:Mason` | Open Mason LSP manager |
|
||||
| `:MasonInstall ` | Install LSP server |
|
||||
| `:MasonUpdate` | Update all servers |
|
||||
### Plugin Management
|
||||
| Command | Action |
|
||||
|---------|--------|
|
||||
| `:Lazy` | Open Lazy plugin manager |
|
||||
| `:Lazy install` | Install plugins |
|
||||
| `:Lazy update` | Update plugins |
|
||||
| `:Lazy clean` | Clean unused plugins |
|
||||
| `:Lazy sync` | Sync plugins |
|
||||
***
|
||||
## ↔️ Vim Movement
|
||||
### Basic Movement
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `h/j/k/l` | Left/Down/Up/Right | `0` | Start of line |
|
||||
| `w` | Next word | `^` | First non-blank |
|
||||
| `W` | Next WORD | `$` | End of line |
|
||||
| `b` | Previous word | `gg` | Go to top |
|
||||
| `B` | Previous WORD | `G` | Go to bottom |
|
||||
| `e` | End of word | `{number}G` | Go to line |
|
||||
| `E` | End of WORD | | |
|
||||
### Page Navigation
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `c-u` | Half page up | `c-b` | Full page up |
|
||||
| `c-d` | Half page down | `c-f` | Full page down |
|
||||
| `zt` | Cursor to top | `zz` | Cursor center |
|
||||
| `zb` | Cursor bottom | | |
|
||||
### Character Finding
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `f{char}` | Find character | `;` | Repeat f/t |
|
||||
| `F{char}` | Find char back | `,` | Repeat f/t back |
|
||||
| `t{char}` | Till character | | |
|
||||
| `T{char}` | Till char back | | |
|
||||
***
|
||||
## 🔍 Search & Replace
|
||||
### Search
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `/pattern` | Search forward | `n` | Next match |
|
||||
| `?pattern` | Search backward | `N` | Previous match |
|
||||
| `*` | Search word under cursor | `#` | Search word under cursor bwd |
|
||||
### Replace
|
||||
| Command | Action |
|
||||
|---------|--------|
|
||||
| `:s/old/new` | Replace in line |
|
||||
| `:s/old/new/g` | Replace all in line |
|
||||
| `:%s/old/new/g` | Replace all in file |
|
||||
| `:%s/old/new/gc` | Replace all with confirm |
|
||||
| `:noh` | Clear search highlight |
|
||||
### Advanced Search
|
||||
| Command | Action |
|
||||
|---------|--------|
|
||||
| `:g/pattern/d` | Delete lines with pattern |
|
||||
| `:v/pattern/d` | Delete lines without pattern |
|
||||
| `\c` | Case insensitive (in search) |
|
||||
| `\C` | Case sensitive (in search) |
|
||||
***
|
||||
## 👁️ Visual Mode
|
||||
### Selection Modes
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `v` | Visual char | `gv` | Select last |
|
||||
| `V` | Visual line | `o` | Other end |
|
||||
| `c-v` | Visual block | `O` | Other corner |
|
||||
### Visual Operations
|
||||
| Key | Action | Key | Action |
|
||||
|-----|--------|-----|--------|
|
||||
| `y` | Yank selection | `>` | Indent right |
|
||||
| `d` | Delete select | `` | Show mapping for key |
|
||||
| `:verbose map` | Show mapping with source |
|
||||
| `:set option?` | Show option value |
|
||||
| `:set all` | Show all options |
|
||||
***
|
||||
## 🔥 Pro Tips
|
||||
### Essential Combinations
|
||||
- **Leader + f + f**: Quick file finder
|
||||
- **Leader + f + w**: Search text across project
|
||||
- **Leader + c + a**: Code actions (fix/refactor)
|
||||
- **Leader + c + c + q**: Ask Copilot anything
|
||||
- **g + d**: Go to definition
|
||||
- **K**: Show documentation
|
||||
- **Space + e**: Focus file explorer
|
||||
- **c-n**: Toggle file tree
|
||||
### Workflow Shortcuts
|
||||
1. **File Navigation**: `Space ff` → type filename → `l`
|
||||
2. **Code Navigation**: `gd` (definition) → `c-o` (back)
|
||||
3. **Search & Replace**: `Space fw` → search → `c-q` → `:%s//new/g`
|
||||
4. **AI Assistance**: Select code → `Space cce` (explain) or `Space ccr` (review)
|
||||
5. **Terminal Integration**: `a-i` → run commands
|
||||
6. **Theme & Config**: `Space th` → select theme
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>ff` | n | Find files | Search for files |
|
||||
| `<leader>fa` | n | Find all files | Search including hidden/ignored files |
|
||||
| `<leader>fo` | n | Find old files | Search recent files |
|
||||
| `<leader>fw` | n | Live grep | Search text in files |
|
||||
| `<leader>fb` | n | Find buffers | Search open buffers |
|
||||
| `<leader>fz` | n | Current buffer fuzzy find | Search in current buffer |
|
||||
|
||||
### Git Operations
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>cm` | n | Git commits | Browse git commits |
|
||||
| `<leader>gt` | n | Git status | View git status |
|
||||
|
||||
### Other Telescope Features
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>fh` | n | Help tags | Search help documentation |
|
||||
| `<leader>ma` | n | Find marks | Search vim marks |
|
||||
| `<leader>pt` | n | Pick terminal | Search hidden terminals |
|
||||
| `<leader>th` | n | NvChad themes | Browse and select themes |
|
||||
|
||||
## 🖥️ Terminal Management
|
||||
|
||||
### Terminal Creation
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>h` | n | New horizontal terminal | Open terminal horizontally |
|
||||
| `<leader>v` | n | New vertical terminal | Open terminal vertically |
|
||||
|
||||
### Terminal Toggles
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<A-v>` | n,t | Toggle vertical terminal | Toggle vertical terminal |
|
||||
| `<A-h>` | n,t | Toggle horizontal terminal | Toggle horizontal terminal |
|
||||
| `<A-i>` | n,t | Toggle floating terminal | Toggle floating terminal |
|
||||
| `<C-x>` | t | Escape terminal mode | Exit terminal mode |
|
||||
|
||||
## 🎨 Formatting & Code
|
||||
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>fm` | n,x | Format file | Format current file/selection |
|
||||
|
||||
## 🩺 LSP (Language Server Protocol)
|
||||
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>ds` | n | Diagnostic loclist | Show diagnostics in location list |
|
||||
|
||||
## 🤖 GitHub Copilot Chat
|
||||
|
||||
### Help & Prompts
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>cch` | n | Help actions | Show Copilot help actions |
|
||||
| `<leader>ccp` | n,x | Prompt actions | Show Copilot prompt actions |
|
||||
|
||||
### Code Operations
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>cce` | n | Explain code | Ask Copilot to explain code |
|
||||
| `<leader>cct` | n | Generate tests | Generate unit tests |
|
||||
| `<leader>ccr` | n | Review code | Get code review |
|
||||
| `<leader>ccR` | n | Refactor code | Refactor code |
|
||||
| `<leader>ccn` | n | Better naming | Suggest better names |
|
||||
|
||||
### Chat Operations
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>cci` | n | Ask input | Custom Copilot question |
|
||||
| `<leader>ccq` | n | Quick chat | Quick chat with buffer |
|
||||
| `<leader>ccv` | x | Visual chat | Chat with selected code |
|
||||
| `<leader>ccx` | x | Inline chat | Inline chat with selection |
|
||||
| `<leader>ccv` | n | Toggle chat | Toggle Copilot chat window |
|
||||
|
||||
### Git Integration
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>ccm` | n | Generate commit message | Commit message for all changes |
|
||||
| `<leader>ccM` | n | Generate staged commit | Commit message for staged changes |
|
||||
|
||||
### Utility
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>ccd` | n | Debug info | Show Copilot debug info |
|
||||
| `<leader>ccf` | n | Fix diagnostic | Fix diagnostic issues |
|
||||
| `<leader>ccl` | n | Clear history | Clear chat history |
|
||||
|
||||
## ❓ Help & Documentation
|
||||
|
||||
| Key | Mode | Action | Description |
|
||||
|-----|------|--------|-------------|
|
||||
| `<leader>ch` | n | Toggle cheatsheet | Show/hide NvChad cheatsheet |
|
||||
| `<leader>wK` | n | All keymaps | Show all available keymaps |
|
||||
| `<leader>wk` | n | Query keymaps | Search for specific keymaps |
|
||||
|
||||
---
|
||||
|
||||
## 📚 Mode Legend
|
||||
- **n** = Normal mode
|
||||
- **i** = Insert mode
|
||||
- **v** = Visual mode
|
||||
- **x** = Visual selection mode
|
||||
- **t** = Terminal mode
|
||||
|
||||
## 🔧 Custom Keybindings Notes
|
||||
- Your leader key is set to `<Space>` (spacebar)
|
||||
- `jk` in insert mode acts as `<ESC>` for quick mode switching
|
||||
- `;` in normal mode enters command mode (equivalent to `:`)
|
||||
- You have GitHub Copilot integration with extensive chat features
|
||||
|
||||
## 💡 Pro Tips
|
||||
1. Use `<leader>th` to quickly switch between themes
|
||||
2. `<leader>fa` finds ALL files including hidden ones
|
||||
3. Use `<leader>fw` for project-wide text search
|
||||
4. Copilot chat (`<leader>cc*`) commands work great for code assistance
|
||||
5. Terminal toggles (`<A-v>`, `<A-h>`, `<A-i>`) are accessible from both normal and terminal modes
|
||||
Reference in New Issue
Block a user