diff --git a/README.md b/README.md index fae43af8..68ff33b3 100644 --- a/README.md +++ b/README.md @@ -199,3 +199,48 @@ sudo pacman -S --noconfirm --needed gcc make git ripgrep fd unzip neovim ``` +## Keymaps + +| Mode | Keys | Action | Description | +| ------------ | ------------ | --------------------------- | ----------------------------- | +| **Normal** | `` | `:nohlsearch` | Clear search highlights | +| **Normal** | `q` | `vim.diagnostic.setloclist` | Open diagnostic quickfix list | +| **Terminal** | `` | `` | Exit terminal mode | +| **Normal** | `` | `` | Move focus to left split | +| **Normal** | `` | `` | Move focus to right split | +| **Normal** | `` | `` | Move focus to lower split | +| **Normal** | `` | `` | Move focus to upper split | + + +| Mode | Keys | Telescope Action | Description | +| ---------- | ------------------ | ---------------------------- | ------------------------------ | +| **Normal** | `sh` | `help_tags` | Search help | +| **Normal** | `sk` | `keymaps` | Search keymaps | +| **Normal** | `sf` | `find_files` | Search files | +| **Normal** | `ss` | `builtin` | Search Telescope pickers | +| **Normal** | `sw` | `grep_string` | Search word under cursor | +| **Normal** | `sg` | `live_grep` | Grep search | +| **Normal** | `sd` | `diagnostics` | Search diagnostics | +| **Normal** | `sr` | `resume` | Resume last Telescope search | +| **Normal** | `s.` | `oldfiles` | Search recent files | +| **Normal** | `` | `buffers` | Find buffers | +| **Normal** | `/` | `current_buffer_fuzzy_find` | Fuzzy find in current buffer | +| **Normal** | `s/` | Live grep open files | Grep through open files only | +| **Normal** | `sn` | `find_files` (Neovim config) | Search Neovim config directory | + +| Mode | Keys | Action | Description | +| ------------------- | ------------ | ------------------------------- | --------------------------------------- | +| **Normal** | `grn` | `vim.lsp.buf.rename` | Rename symbol | +| **Normal / Visual** | `gra` | `vim.lsp.buf.code_action` | Code actions | +| **Normal** | `grr` | `lsp_references` | Find references | +| **Normal** | `gri` | `lsp_implementations` | Go to implementation | +| **Normal** | `grd` | `lsp_definitions` | Go to definition | +| **Normal** | `grD` | `vim.lsp.buf.declaration` | Go to declaration | +| **Normal** | `gO` | `lsp_document_symbols` | Document symbols | +| **Normal** | `gW` | `lsp_dynamic_workspace_symbols` | Workspace symbols | +| **Normal** | `grt` | `lsp_type_definitions` | Go to type definition | +| **Normal** | `th` | Toggle inlay hints | Toggle LSP inlay hints (when supported) | + +| Mode | Keys | Action | Description | +| --------------------------- | ----------- | ---------------- | --------------------- | +| **All modes (`mode = ''`)** | `f` | `conform.format` | Format current buffer |