Skip to main content

⌨️ Keymaps

LazyVim uses which-key.nvim to help you remember your keymaps. Just press any key like <space> and you'll see a popup with all possible keymaps starting with <space>.

image

  • default <leader> is <space>
  • default <localleader> is \

General

KeyDescriptionMode
jDownn, x
<Down>Downn, x
kUpn, x
<Up>Upn, x
<C-h>Go to Left Windown, t
<C-j>Go to Lower Windown, t
<C-k>Go to Upper Windown, t
<C-l>Go to Right Windown, t
<C-Up>Increase Window Heightn
<C-Down>Decrease Window Heightn
<C-Left>Decrease Window Widthn
<C-Right>Increase Window Widthn
<A-j>Move Downn, i, v
<A-k>Move Upn, i, v
<S-h>Prev Buffern
<S-l>Next Buffern
[bPrev Buffern
]bNext Buffern
<leader>bbSwitch to Other Buffern
<leader>`Switch to Other Buffern
<leader>bdDelete Buffern
<leader>bDDelete Buffer and Windown
<esc>Escape and Clear hlsearchi, n
<leader>urRedraw / Clear hlsearch / Diff Updaten
nNext Search Resultn, x, o
NPrev Search Resultn, x, o
<C-s>Save Filei, x, n, s
<leader>KKeywordprgn
gcoAdd Comment Belown
gcOAdd Comment Aboven
<leader>lLazyn
<leader>fnNew Filen
<leader>xlLocation Listn
<leader>xqQuickfix Listn
[qPrevious Quickfixn
]qNext Quickfixn
<leader>cfFormatn, v
<leader>cdLine Diagnosticsn
]dNext Diagnosticn
[dPrev Diagnosticn
]eNext Errorn
[ePrev Errorn
]wNext Warningn
[wPrev Warningn
<leader>ufToggle Auto Format (Global)n
<leader>uFToggle Auto Format (Buffer)n
<leader>usToggle Spellingn
<leader>uwToggle Word Wrapn
<leader>uLToggle Relative Line Numbersn
<leader>ulToggle Line Numbersn
<leader>udToggle Diagnosticsn
<leader>ucToggle Concealn
<leader>uhToggle Inlay Hintsn
<leader>uTToggle Treesitter Highlightn
<leader>ubToggle Backgroundn
<leader>ggLazygit (Root Dir)n
<leader>gGLazygit (cwd)n
<leader>gbGit Blame Linen
<leader>gfLazygit Current File Historyn
<leader>glLazygit Logn
<leader>qqQuit Alln
<leader>uiInspect Posn
<leader>uIInspect Treen
<leader>LLazyVim Changelogn
<leader>ftTerminal (Root Dir)n
<leader>fTTerminal (cwd)n
<c-/>Terminal (Root Dir)n
<c-_>which_key_ignoren, t
<esc><esc>Enter Normal Modet
<C-/>Hide Terminalt
<leader>wwOther Windown
<leader>wdDelete Windown
<leader>w-Split Window Belown
<leader>w|Split Window Rightn
<leader>-Split Window Belown
<leader>|Split Window Rightn
<leader><tab>lLast Tabn
<leader><tab>fFirst Tabn
<leader><tab><tab>New Tabn
<leader><tab>]Next Tabn
<leader><tab>dClose Tabn
<leader><tab>[Previous Tabn

LSP

KeyDescriptionMode
<leader>clLsp Infon
gdGoto Definitionn
grReferencesn
gDGoto Declarationn
gIGoto Implementationn
gyGoto T[y]pe Definitionn
KHovern
gKSignature Helpn
<c-k>Signature Helpi
<leader>caCode Actionn, v
<leader>ccRun Codelensn, v
<leader>cCRefresh & Display Codelensn
<leader>cASource Actionn
]]Next Referencen
[[Prev Referencen
<a-n>Next Referencen
<a-p>Prev Referencen
<leader>crRenamen

bufferline.nvim

KeyDescriptionMode
<leader>blDelete Buffers to the Leftn
<leader>boDelete Other Buffersn
<leader>bpToggle Pinn
<leader>bPDelete Non-Pinned Buffersn
<leader>brDelete Buffers to the Rightn
[bPrev Buffern
]bNext Buffern
<S-h>Prev Buffern
<S-l>Next Buffern

conform.nvim

KeyDescriptionMode
<leader>cFFormat Injected Langsn, v

flash.nvim

KeyDescriptionMode
<c-s>Toggle Flash Searchc
rRemote Flasho
RTreesitter Searcho, x
sFlashn, o, x
SFlash Treesittern, o, x

mason.nvim

KeyDescriptionMode
<leader>cmMasonn

mini.pairs

KeyDescriptionMode
<leader>upToggle Auto Pairsn

neo-tree.nvim

KeyDescriptionMode
<leader>beBuffer Explorern
<leader>eExplorer NeoTree (Root Dir)n
<leader>EExplorer NeoTree (cwd)n
<leader>feExplorer NeoTree (Root Dir)n
<leader>fEExplorer NeoTree (cwd)n
<leader>geGit Explorern

noice.nvim

KeyDescriptionMode
<c-b>Scroll Backwardn, i, s
<c-f>Scroll Forwardn, i, s
<leader>snaNoice Alln
<leader>sndDismiss Alln
<leader>snhNoice Historyn
<leader>snlNoice Last Messagen
<leader>sntNoice Telescopen
<S-Enter>Redirect Cmdlinec

nvim-notify

KeyDescriptionMode
<leader>unDismiss All Notificationsn

nvim-spectre

KeyDescriptionMode
<leader>srReplace in Files (Spectre)n

nvim-treesitter

KeyDescriptionMode
<bs>Decrement Selectionx
<c-space>Increment Selectionn

persistence.nvim

KeyDescriptionMode
<leader>qdDon't Save Current Sessionn
<leader>qlRestore Last Sessionn
<leader>qsRestore Sessionn

telescope.nvim

KeyDescriptionMode
<leader><space>Find Files (Root Dir)n
<leader>,Switch Buffern
<leader>/Grep (Root Dir)n
<leader>:Command Historyn
<leader>fbBuffersn
<leader>fcFind Config Filen
<leader>ffFind Files (Root Dir)n
<leader>fFFind Files (cwd)n
<leader>fgFind Files (git-files)n
<leader>frRecentn
<leader>fRRecent (cwd)n
<leader>gcCommitsn
<leader>gsStatusn
<leader>s"Registersn
<leader>saAuto Commandsn
<leader>sbBuffern
<leader>scCommand Historyn
<leader>sCCommandsn
<leader>sdDocument Diagnosticsn
<leader>sDWorkspace Diagnosticsn
<leader>sgGrep (Root Dir)n
<leader>sGGrep (cwd)n
<leader>shHelp Pagesn
<leader>sHSearch Highlight Groupsn
<leader>sjJumplistn
<leader>skKey Mapsn
<leader>slLocation Listn
<leader>smJump to Markn
<leader>sMMan Pagesn
<leader>soOptionsn
<leader>sqQuickfix Listn
<leader>sRResumen
<leader>ssGoto Symboln
<leader>sSGoto Symbol (Workspace)n
<leader>swWord (Root Dir)n
<leader>sWWord (cwd)n
<leader>swSelection (Root Dir)v
<leader>sWSelection (cwd)v
<leader>uCColorscheme with Previewn

todo-comments.nvim

KeyDescriptionMode
<leader>stTodon
<leader>sTTodo/Fix/Fixmen
<leader>xtTodo (Trouble)n
<leader>xTTodo/Fix/Fixme (Trouble)n
[tPrevious Todo Commentn
]tNext Todo Commentn

trouble.nvim

KeyDescriptionMode
<leader>xLLocation List (Trouble)n
<leader>xQQuickfix List (Trouble)n
<leader>xxDocument Diagnostics (Trouble)n
<leader>xXWorkspace Diagnostics (Trouble)n
[qPrevious Trouble/Quickfix Itemn
]qNext Trouble/Quickfix Itemn

CopilotChat.nvim

Part of lazyvim.plugins.extras.coding.copilot-chat

KeyDescriptionMode
<leader>aaToggle (CopilotChat)n, v
<leader>aqQuick Chat (CopilotChat)n, v
<leader>axClear (CopilotChat)n, v

telescope.nvim

Part of lazyvim.plugins.extras.coding.copilot-chat

KeyDescriptionMode
<leader>adDiagnostic Help (CopilotChat)n, v
<leader>apPrompt Actions (CopilotChat)n, v

mini.surround

Part of lazyvim.plugins.extras.coding.mini-surround

KeyDescriptionMode
gsaAdd Surroundingn, v
gsdDelete Surroundingn
gsfFind Right Surroundingn
gsFFind Left Surroundingn
gshHighlight Surroundingn
gsnUpdate MiniSurround.config.n_linesn
gsrReplace Surroundingn

yanky.nvim

Part of lazyvim.plugins.extras.coding.yanky

KeyDescriptionMode
<leader>pOpen Yank Historyn
<pPut and Indent Leftn
<PPut Before and Indent Leftn
=pPut After Applying a Filtern
=PPut Before Applying a Filtern
>pPut and Indent Rightn
>PPut Before and Indent Rightn
[pPut Indented Before Cursor (Linewise)n
[PPut Indented Before Cursor (Linewise)n
[yCycle Forward Through Yank Historyn
]pPut Indented After Cursor (Linewise)n
]PPut Indented After Cursor (Linewise)n
]yCycle Backward Through Yank Historyn
gpPut Yanked Text After Selectionn, x
gPPut Yanked Text Before Selectionn, x
pPut Yanked Text After Cursorn, x
PPut Yanked Text Before Cursorn, x
yYank Textn, x

nvim-dap

Part of lazyvim.plugins.extras.dap.core

KeyDescriptionMode
<leader>daRun with Argsn
<leader>dbToggle Breakpointn
<leader>dBBreakpoint Conditionn
<leader>dcContinuen
<leader>dCRun to Cursorn
<leader>dgGo to Line (No Execute)n
<leader>diStep Inton
<leader>djDownn
<leader>dkUpn
<leader>dlRun Lastn
<leader>doStep Outn
<leader>dOStep Overn
<leader>dpPausen
<leader>drToggle REPLn
<leader>dsSessionn
<leader>dtTerminaten
<leader>dwWidgetsn

nvim-dap-ui

Part of lazyvim.plugins.extras.dap.core

KeyDescriptionMode
<leader>deEvaln, v
<leader>duDap UIn

aerial.nvim

Part of lazyvim.plugins.extras.editor.aerial

KeyDescriptionMode
<leader>csAerial (Symbols)n

telescope.nvim

Part of lazyvim.plugins.extras.editor.aerial

KeyDescriptionMode
<leader>ssGoto Symbol (Aerial)n

dial.nvim

Part of lazyvim.plugins.extras.editor.dial

KeyDescriptionMode
<C-a>Incrementn, v
<C-x>Decrementn, v
g<C-a>Incrementn, v
g<C-x>Decrementn, v

harpoon

Part of lazyvim.plugins.extras.editor.harpoon2

KeyDescriptionMode
<leader>1Harpoon to File 1n
<leader>2Harpoon to File 2n
<leader>3Harpoon to File 3n
<leader>4Harpoon to File 4n
<leader>5Harpoon to File 5n
<leader>hHarpoon Quick Menun
<leader>HHarpoon Filen

vim-illuminate

Part of lazyvim.plugins.extras.editor.illuminate

KeyDescriptionMode
[[Prev Referencen
]]Next Referencen

flit.nvim

Part of lazyvim.plugins.extras.editor.leap

KeyDescriptionMode
ffn, o, x
FFn, o, x
ttn, o, x
TTn, o, x

leap.nvim

Part of lazyvim.plugins.extras.editor.leap

KeyDescriptionMode
gsLeap from Windowsn, o, x
sLeap Forward ton, o, x
SLeap Backward ton, o, x

mini.diff

Part of lazyvim.plugins.extras.editor.mini-diff

KeyDescriptionMode
<leader>goToggle mini.diff overlayn

mini.files

Part of lazyvim.plugins.extras.editor.mini-files

KeyDescriptionMode
<leader>fmOpen mini.files (Directory of Current File)n
<leader>fMOpen mini.files (cwd)n

outline.nvim

Part of lazyvim.plugins.extras.editor.outline

KeyDescriptionMode
<leader>csToggle Outlinen

refactoring.nvim

Part of lazyvim.plugins.extras.editor.refactoring

KeyDescriptionMode
<leader>rbExtract Blockn
<leader>rcDebug Cleanupn
<leader>rfExtract Block To Filen
<leader>rfExtract Functionv
<leader>rFExtract Function To Filev
<leader>riInline Variablen, v
<leader>rpDebug Print Variablen, v
<leader>rPDebug Printn
<leader>rsRefactorv
<leader>rxExtract Variablev

trouble.nvim

Part of lazyvim.plugins.extras.editor.trouble-v3

KeyDescriptionMode
<leader>csSymbols (Trouble)n
<leader>cSLSP references/definitions/... (Trouble)n
<leader>xLLocation List (Trouble)n
<leader>xQQuickfix List (Trouble)n
<leader>xxDiagnostics (Trouble)n
<leader>xXBuffer Diagnostics (Trouble)n
[qPrevious Trouble/Quickfix Itemn

nvim-ansible

Part of lazyvim.plugins.extras.lang.ansible

KeyDescriptionMode
<leader>taAnsible Run Playbook/Rolen

markdown-preview.nvim

Part of lazyvim.plugins.extras.lang.markdown

KeyDescriptionMode
<leader>cpMarkdown Previewn

nvim-dap-python

Part of lazyvim.plugins.extras.lang.python

KeyDescriptionMode
<leader>dPcDebug Classn
<leader>dPtDebug Methodn

venv-selector.nvim

Part of lazyvim.plugins.extras.lang.python

KeyDescriptionMode
<leader>cvSelect VirtualEnvn

nvim-metals

Part of lazyvim.plugins.extras.lang.scala

KeyDescriptionMode
<leader>mcMetals compile cascaden
<leader>meMetals commandsn

neotest

Part of lazyvim.plugins.extras.test.core

KeyDescriptionMode
<leader>tlRun Lastn
<leader>toShow Outputn
<leader>tOToggle Output Paneln
<leader>trRun Nearestn
<leader>tsToggle Summaryn
<leader>tSStopn
<leader>ttRun Filen
<leader>tTRun All Test Filesn

nvim-dap

Part of lazyvim.plugins.extras.test.core

KeyDescriptionMode
<leader>tdDebug Nearestn

edgy.nvim

Part of lazyvim.plugins.extras.ui.edgy

KeyDescriptionMode
<leader>ueEdgy Togglen
<leader>uEEdgy Select Windown

nvim-treesitter-context

Part of lazyvim.plugins.extras.ui.treesitter-context

KeyDescriptionMode
<leader>utToggle Treesitter Contextn

mason.nvim

Part of lazyvim.plugins.extras.util.gitui

KeyDescriptionMode
<leader>ggGitUi (Root Dir)n
<leader>gGGitUi (cwd)n

project.nvim

Part of lazyvim.plugins.extras.util.project

KeyDescriptionMode
<leader>fpProjectsn