mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-24 22:28:36 +02:00
188 lines
4.2 KiB
Markdown
188 lines
4.2 KiB
Markdown
|
# Neovim Keybindings Reference
|
||
|
|
||
|
This document provides a comprehensive reference for all keybindings in this Neovim configuration, organized by category.
|
||
|
|
||
|
## Navigation
|
||
|
|
||
|
### Window Navigation
|
||
|
|
||
|
- `<C-h>` - Move focus to the left window
|
||
|
- `<C-j>` - Move focus to the down window
|
||
|
- `<C-k>` - Move focus to the up window
|
||
|
- `<C-l>` - Move focus to the right window
|
||
|
|
||
|
### Window Management
|
||
|
|
||
|
- `<leader>wv` - Split window vertically
|
||
|
- `<leader>ws` - Split window horizontally
|
||
|
- `<leader>wq` - Close current window
|
||
|
- `<leader>wo` - Close other windows
|
||
|
|
||
|
### Window Resizing
|
||
|
|
||
|
- `<M-Up>` - Increase window height
|
||
|
- `<M-Down>` - Decrease window height
|
||
|
- `<M-Left>` - Decrease window width
|
||
|
- `<M-Right>` - Increase window width
|
||
|
|
||
|
### Tab Management
|
||
|
|
||
|
- `<leader>tn` - New tab
|
||
|
- `<leader>to` - New tab with file
|
||
|
- `<leader>tc` - Close tab
|
||
|
- `<C-PgDn>` - Next tab
|
||
|
- `<C-PgUp>` - Previous tab
|
||
|
|
||
|
### Buffer Navigation
|
||
|
|
||
|
- `<leader><leader>` - Find buffers
|
||
|
- `<leader>bd` - Delete buffer
|
||
|
- `<leader>bn` - Next buffer
|
||
|
- `<leader>bp` - Previous buffer
|
||
|
|
||
|
## File Operations
|
||
|
|
||
|
### General Operations
|
||
|
|
||
|
- `<leader>w` - Save file
|
||
|
- `<leader>q` - Quit
|
||
|
- `<leader>Q` - Force quit all
|
||
|
- `<leader>W` - Save and quit
|
||
|
- `<leader>/` - Clear search highlights
|
||
|
- `<Esc>` - Clear highlights
|
||
|
|
||
|
### File Explorer
|
||
|
|
||
|
- `<leader>e` - Open file explorer
|
||
|
|
||
|
## Search and Navigation (Telescope)
|
||
|
|
||
|
### General Search
|
||
|
|
||
|
- `<leader>ff` - Find files
|
||
|
- `<leader>fg` - Live grep
|
||
|
- `<leader>fb` - Find buffers
|
||
|
- `<leader>fh` - Help tags
|
||
|
- `<leader>fr` - Recent files
|
||
|
- `<leader>fc` - Grep current string
|
||
|
- `<leader>fk` - Find keymaps
|
||
|
- `<leader>fd` - Search diagnostics
|
||
|
- `<leader>fw` - Search current buffer
|
||
|
|
||
|
### Git Search
|
||
|
|
||
|
- `<leader>fgc` - Git commits
|
||
|
- `<leader>fgb` - Git branches
|
||
|
- `<leader>fgs` - Git status
|
||
|
- `<leader>fgt` - Git stash
|
||
|
|
||
|
## Bufferline
|
||
|
|
||
|
### Buffer Actions
|
||
|
|
||
|
- `<leader>bp` - Pick buffer
|
||
|
- `<leader>bc` - Pick buffer to close
|
||
|
- `<leader>bh` - Previous buffer
|
||
|
- `<leader>bl` - Next buffer
|
||
|
- `<leader>bH` - Move buffer left
|
||
|
- `<leader>bL` - Move buffer right
|
||
|
- `<leader>b1-9` - Go to buffer 1-9
|
||
|
- `<A-1-9>` - Go to buffer 1-9
|
||
|
|
||
|
## Editing
|
||
|
|
||
|
### Line Movement
|
||
|
|
||
|
- `<A-j>` - Move line down
|
||
|
- `<A-k>` - Move line up
|
||
|
- `<A-j>` (visual) - Move selection down
|
||
|
- `<A-k>` (visual) - Move selection up
|
||
|
|
||
|
### Indentation
|
||
|
|
||
|
- `<` (visual) - Decrease indent
|
||
|
- `>` (visual) - Increase indent
|
||
|
|
||
|
## Terminal
|
||
|
|
||
|
### Terminal Commands
|
||
|
|
||
|
- `<leader>tt` - Toggle terminal
|
||
|
- `<leader>tf` - Toggle floating terminal
|
||
|
- `<leader>th` - Toggle horizontal terminal
|
||
|
- `<leader>tv` - Toggle vertical terminal
|
||
|
- `<Esc>` (terminal) - Exit terminal mode
|
||
|
|
||
|
## Diagnostics
|
||
|
|
||
|
### Diagnostic Navigation
|
||
|
|
||
|
- `<leader>xd` - Open diagnostic float
|
||
|
- `<leader>xl` - Open diagnostic list
|
||
|
- `[d` - Previous diagnostic
|
||
|
- `]d` - Next diagnostic
|
||
|
|
||
|
## Plugin-specific Keybindings
|
||
|
|
||
|
### Harpoon
|
||
|
|
||
|
- `<leader>ha` - Add file to harpoon
|
||
|
- `<leader>hh` - Toggle quick menu
|
||
|
- `<leader>h1-9` - Jump to file 1-9
|
||
|
|
||
|
### LeetCode
|
||
|
|
||
|
- `<leader>ll` - Open LeetCode
|
||
|
- `<leader>ld` - Daily Challenge
|
||
|
- `<leader>lr` - Random Problem
|
||
|
- `<leader>ls` - Submit Solution
|
||
|
- `<leader>lt` - Test Solution
|
||
|
- `<leader>lm` - LeetCode Menu
|
||
|
- `<leader>li` - Problem Info
|
||
|
- `<leader>lc` - Toggle Console
|
||
|
- `<leader>la` - Switch Tab
|
||
|
|
||
|
### Trouble/Diagnostics
|
||
|
|
||
|
- `<leader>xx` - Toggle trouble
|
||
|
- `<leader>xw` - Toggle workspace diagnostics
|
||
|
- `<leader>xd` - Toggle document diagnostics
|
||
|
- `<leader>xq` - Toggle quickfix
|
||
|
- `<leader>xl` - Toggle location list
|
||
|
|
||
|
### Neorg
|
||
|
|
||
|
- `<leader>ni` - Neorg index
|
||
|
- `<leader>nr` - Return from workspace
|
||
|
- `<leader>nt` - Toggle concealer
|
||
|
- `<leader>nm` - Inject metadata
|
||
|
|
||
|
#### Neorg Journal
|
||
|
|
||
|
- `<leader>njj` - Today's journal entry
|
||
|
- `<leader>njt` - Tomorrow's journal entry
|
||
|
- `<leader>njy` - Yesterday's journal entry
|
||
|
|
||
|
#### Neorg Workspace
|
||
|
|
||
|
- `<leader>nwn` - Switch to notes workspace
|
||
|
- `<leader>nww` - Switch to work workspace
|
||
|
- `<leader>nwp` - Switch to personal workspace
|
||
|
|
||
|
#### Neorg Export
|
||
|
|
||
|
- `<leader>neh` - Export to HTML
|
||
|
- `<leader>nem` - Export to Markdown
|
||
|
- `<leader>nep` - Export to PDF
|
||
|
|
||
|
### LSP
|
||
|
|
||
|
- `<leader>lsr` - Rename symbol
|
||
|
- `<leader>lsa` - Code actions
|
||
|
- `<leader>lsf` - Format document
|
||
|
- `<leader>lsd` - Go to definition
|
||
|
- `<leader>lst` - Go to type definition
|
||
|
- `<leader>lsD` - Go to declaration
|
||
|
- `<leader>lsi` - Go to implementation
|
||
|
- `<leader>lsr` - Go to references
|