-
Notifications
You must be signed in to change notification settings - Fork 14
Keybinds
Pranay Gosar edited this page Jan 5, 2024
·
4 revisions
Here are all the keybinds CyberNvim defines and what they do. For keybinds specifically defined by various plugins, check their documentation - you can see all installed plugins on the plugins page of the wiki.
The leader key is the spacebar.
| mode | Keybind | Function |
|---|---|---|
| normal | <leader>dc | continue |
| normal | <leader>n | step over |
| normal | <leader>si | step into |
| normal | <leader>so | step out |
| normal | <leader>tb | toggle breakpoint |
| normal | <leader>dq | disconnect debugger |
| mode | Keybind | Function |
|---|---|---|
| normal | <leader>tr | toggle references |
| normal | <leader>td | toggle definitions |
| normal | <leader>cd | toggle trouble |
| mode | Keybind | Function |
|---|---|---|
| normal | zR | open all folds |
| normal | zM | close all folds |
| mode | Keybind | Function |
|---|---|---|
| normal | <leader>zm | toggle zen mode |
| mode | Keybind | Function |
|---|---|---|
| normal | <leader>nt | open neo-tree on the left |
| normal | <leader>nf | open neo-tree as a floating window |
| mode | Keybind | Function |
|---|---|---|
| normal | <leader>at | toggle aerial |
| mode | Keybind | Function |
|---|---|---|
| normal | m | turn off highlighting when searching |
| mode | Keybind | Function |
|---|---|---|
| insert | <C-d> | move cursor past next separator (quotes, brackets, angle brackets etc.) |
| insert | <\C-b> | move cursor to beginning of line |
| insert | <\C-a> | move cursor to end of line |
| mode | Keybind | Function |
|---|---|---|
| command | <C-p> | go up one command |
| command | <C-n> | go down one command |
| mode | Keybind | Function |
|---|---|---|
| normal | <leader>fg | open all files at git root |
| normal | <leader>fg | code grep with telescope |
| normal | <leader>fb | telescope for all buffers |
| normal | <leader>fh | telescope for help tags |
| normal | <leader>fa | telescope for aerial output |
| normal | <leader>fp | telescope for all defined projects |
| mode | Keybind | Function |
|---|---|---|
| visual | <A-j> | move a group of lines down |
| visual | <A-k> | move a group of lines up |
| mode | Keybind | Function |
|---|---|---|
| normal | rg | rename any symbol across a file without the LSP |
| normal | gd | symbol declaration |
| normal | gD | telescope through definitions of symbol |
| normal | K | hover documentation for a symbol |
| normal | gi | symbol implementations |
| normal | gr | telescope through references of symbol |
| normal | sh | signature help documentation |
| normal | <leader>rn | lsp based symbol renaming |
| normal | <leader>ca | code actions |
Tab and shift-tab are used for snippet expansion and selecting which completion to use.
| mode | Keybind | Function |
|---|---|---|
| insert | <C-k> | scroll cmp documentation window up |
| insert | <C-j> | scroll cmp documentation window down |
| insert | <C-c> | abort completion |
| insert | <C-n> | force start completions (helpful for when you haven't typed anything |
| insert | <C-f> or | jump forward in snippet |
| insert | <C-b> or | jump backward in snippet |
| mode | Keybind | Function |
|---|---|---|
| normal | <leader>ss | save current session |
| normal | <leader>o | load a session |
| mode | Keybind | Function |
|---|---|---|
| normal | <C-\>t | open terminal as a new tab at the root of the git repo |
| normal | <C-\> | open terminal as a window at the root of the git repo |
| normal | <leader>tk | open tokei (code line counter) in a terminal |
| normal | <leader>gg | open lazygit (git front end) |
| normal | <leader>gd | open gdu (disk usage analyzer) |
| normal | <leader>bt | open bashtop (process viewer) |
| mode | Keybind | Function |
|---|---|---|
| normal | <leader>j | start hopping |
| mode | Keybind | Function |
|---|---|---|
| normal | <leader>as | toggle autosave |
| mode | Keybind | Function |
|---|---|---|
| normal | <leader>p | Paste Image |