docs(editor): document nvim-cmp completion menu keybindings
CI / flake (pull_request) Successful in 4m3s
CI / flake (pull_request) Successful in 4m3s
Add a completion-menu table to KEYBINDINGS.md covering the new cmp mappings (Tab/S-Tab and C-n/C-p to move, C-Space to open, Enter to confirm, C-e to dismiss), and reword the Neovim summary accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -188,10 +188,22 @@ across vim splits and tmux panes seamlessly. Everything else is stock vim, plus:
|
|||||||
| `<leader>rn` | Rename symbol (LSP; `<leader>` is `Space`) |
|
| `<leader>rn` | Rename symbol (LSP; `<leader>` is `Space`) |
|
||||||
| `<leader>ca` | Code action (LSP) |
|
| `<leader>ca` | Code action (LSP) |
|
||||||
|
|
||||||
LSP covers Nix, Lua, Python and Terraform (the work box adds C# and Helm);
|
### Completion menu (nvim-cmp)
|
||||||
completion (nvim-cmp) appears as you type. Files are formatted on save
|
|
||||||
(conform-nvim). `:Git` opens fugitive; gitsigns shows gutter signs. which-key
|
Active only while the completion popup is open (it appears as you type, e.g.
|
||||||
pops up after `<leader>` to show the rest.
|
file paths):
|
||||||
|
|
||||||
|
| Shortcut | Action |
|
||||||
|
| ----------------------- | ------------------------------------------------------------------ |
|
||||||
|
| `Tab` / `Shift`+`Tab` | Select next / previous item |
|
||||||
|
| `Ctrl`+`n` / `Ctrl`+`p` | Select next / previous item |
|
||||||
|
| `Ctrl`+`Space` | Open the completion menu |
|
||||||
|
| `Enter` | Confirm the highlighted item (no auto-select; otherwise a newline) |
|
||||||
|
| `Ctrl`+`e` | Dismiss the menu |
|
||||||
|
|
||||||
|
LSP covers Nix, Lua, Python and Terraform (the work box adds C# and Helm).
|
||||||
|
Files are formatted on save (conform-nvim). `:Git` opens fugitive; gitsigns
|
||||||
|
shows gutter signs. which-key pops up after `<leader>` to show the rest.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user