Most navigation keymaps use Snacks pickers with fuzzy finding, live preview, and frecency-based sorting for faster access to frequently used files.
File pickers
Find and open files quickly with fuzzy matching.| Key | Mode | Description |
|---|---|---|
<leader><leader> | normal | Smart find files (ivy layout) |
<leader>ff | normal | Find files (ivy_taller layout) |
<leader>fr | normal | Recent files |
<leader>fp | normal | Projects |
<leader>nc | normal | Nvim config files |
<leader><leader> uses smart detection to choose the best finder based on context. It’s the fastest way to open files in most situations.Buffer navigation
Switch between open buffers efficiently.| Key | Mode | Description |
|---|---|---|
<leader>jk | normal | Buffers (picker with delete support) |
<Left> | normal | Previous buffer (cycle) |
<Right> | normal | Next buffer (cycle) |
<leader>bd | normal | Delete buffer (Snacks) |
The buffers picker (
<leader>jk) opens in normal mode (not insert) and supports deleting buffers with d. See lua/plugins/snacks.lua:38.Content search
Search file contents across the project.| Key | Mode | Description |
|---|---|---|
<leader>fa | normal | Find all (live grep) |
<leader>fv | normal, visual | Grep word under cursor or selection |
<leader>fa uses the ivy_split layout, or dashboard_ivy_split when opened from the dashboard. See lua/plugins/snacks.lua:64.File explorer
Browse the filesystem with tree-based navigation.| Key | Mode | Description |
|---|---|---|
<M-e> | normal | Toggle Snacks file explorer |
The Snacks explorer shows hidden files by default, includes diagnostic indicators, and auto-opens folders with diagnostics. See
lua/plugins/snacks.lua:489.Explorer features
- Auto-close when opening files
- Diagnostic integration
- Line numbers in file list
- Replaces netrw by default
lua/plugins/snacks.lua:517.
Picker layouts
Snacks pickers support multiple layouts with different visual styles.| Layout | Description | Used by |
|---|---|---|
ivy_taller | Bottom panel with preview | <leader>ff, <leader>jk |
ivy_split | Split view with preview | <leader>fa, grp |
select | Compact selection list | <leader>: |
default | Full-screen with preview | <M-S-k> |
Press
<M-p> inside any picker to cycle through available layouts. See lua/plugins/snacks.lua:572.Picker navigation
Common keymaps available inside all pickers.| Key | Mode | Description |
|---|---|---|
<Esc> | normal, insert | Close picker |
<M-p> | normal, insert | Cycle layouts |
J | normal | Preview scroll down |
K | normal | Preview scroll up |
H | normal | Preview scroll left |
L | normal | Preview scroll right |
<Tab> | normal, insert | Focus preview window |
When focused on the preview window, press
<Esc> to return focus to the input field. See lua/plugins/snacks.lua:580.Search and history
Browse command and search history.| Key | Mode | Description |
|---|---|---|
<leader>: | normal | Command history |
<leader>s/ | normal | Search history |
<leader>sr | normal | Resume last picker |
Reference navigation
Jump to word references across files.| Key | Mode | Description |
|---|---|---|
<leader>fn | normal | Next reference |
<leader>fN | normal | Previous reference |
Reference navigation uses the Snacks words feature to highlight and jump between occurrences of the word under the cursor.
Specialized pickers
Additional pickers for specific use cases.| Key | Mode | Description |
|---|---|---|
<M-S-k> | normal | Keymaps picker |
<leader>sj | normal | Jumps |
<leader>sm | normal | Marks |
<leader>s" | normal | Registers |
<leader>su | normal | Undo history |
<leader>ii | normal | Icons |
Picker configuration
- Frecency
- File formatting
- Exclusions
- Preview window
Pickers use frecency-based sorting to prioritize frequently and recently used files:See
lua/plugins/snacks.lua:555.Buffer deletion in picker
The buffers picker supports in-picker deletion:d on any buffer in the list to delete it without leaving the picker. See lua/plugins/snacks.lua:52.
Explorer keymaps
Inside the Snacks explorer, additional keymaps are available:| Key | Mode | Description |
|---|---|---|
<a-a> | normal, insert | Send to Sidekick |
Explorer keymaps can be customized in the
win.input.keys configuration at lua/plugins/snacks.lua:531.Workflow tips
For best results, use
<leader><leader> for quick file access, <leader>fa for content search, and <leader>jk for buffer switching.Efficient navigation patterns
- Find file by name:
<leader>ff→ type partial name →<CR> - Search code:
<leader>fa→ type pattern → browse results - Recent files:
<leader>fr→ select from MRU list - Switch buffers:
<leader>jk→ type buffer name or use arrows - Explore filesystem:
<M-e>→ navigate tree structure
All pickers support fuzzy matching, so you don’t need to type exact names. For example, typing
usrmod will match user_model.ts.Hidden files
Both the file picker and explorer show hidden files by default:lua/plugins/snacks.lua:514 and lua/plugins/snacks.lua:491.