Keybinds - pgosar/CyberNvim GitHub Wiki

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.

DAP (Debugging)

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

Trouble (quickfix)

mode Keybind Function
normal <leader>tr toggle references
normal <leader>td toggle definitions
normal <leader>cd toggle trouble

UFO (managing folds)

mode Keybind Function
normal zR open all folds
normal zM close all folds

ZenMode (zen)

mode Keybind Function
normal <leader>zm toggle zen mode

NeoTree (file tree)

mode Keybind Function
normal <leader>nt open neo-tree on the left
normal <leader>nf open neo-tree as a floating window

Aerial (code overview)

mode Keybind Function
normal <leader>at toggle aerial

Searching/Highlighting

mode Keybind Function
normal m turn off highlighting when searching

Movement

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

Command mode

mode Keybind Function
command <C-p> go up one command
command <C-n> go down one command

Telescope (explorer)

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

Moving around lines

mode Keybind Function
visual <A-j> move a group of lines down
visual <A-k> move a group of lines up

LSP stuff

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

Completions

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

Session management

mode Keybind Function
normal <leader>ss save current session
normal <leader>o load a session

ToggleTerm (terminals)

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)

Hop (better movement)

mode Keybind Function
normal <leader>j start hopping

Autosave

mode Keybind Function
normal <leader>as toggle autosave

Img Paste

mode Keybind Function
normal <leader>p Paste Image
⚠️ **GitHub.com Fallback** ⚠️