diff --git a/lyrathorpe/home/KEYBINDINGS.md b/lyrathorpe/home/KEYBINDINGS.md index a64d2f1..0ef90a7 100644 --- a/lyrathorpe/home/KEYBINDINGS.md +++ b/lyrathorpe/home/KEYBINDINGS.md @@ -188,10 +188,22 @@ across vim splits and tmux panes seamlessly. Everything else is stock vim, plus: | `rn` | Rename symbol (LSP; `` is `Space`) | | `ca` | Code action (LSP) | -LSP covers Nix, Lua, Python and Terraform (the work box adds C# and Helm); -completion (nvim-cmp) appears as you type. Files are formatted on save -(conform-nvim). `:Git` opens fugitive; gitsigns shows gutter signs. which-key -pops up after `` to show the rest. +### Completion menu (nvim-cmp) + +Active only while the completion popup is open (it appears as you type, e.g. +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 `` to show the rest. ---