feat(editor): add nvim-cmp completion keymaps #40

Merged
lyrathorpe merged 2 commits from feat/cmp-completion-keymaps into main 2026-06-23 16:33:13 +01:00
Owner

Closes #39.

nvim-cmp ships no default keymaps, so the completion menu (including the path source) appeared but nothing could navigate or accept it.

Bind the usual set in plugins.cmp.settings.mapping:

  • <C-n> / <C-p> and <Tab> / <S-Tab> — select next/previous
  • <C-Space> — open the menu
  • <C-e> — abort
  • <CR> — confirm with select = false (bare Enter stays a newline unless an entry is highlighted)

Documentation: KEYBINDINGS.md gains a completion-menu table under the Neovim section covering these keys, and the Neovim summary is reworded accordingly.

Verified by rendering the generated nvim config: the mappings emit as raw Lua (e.g. ["<CR>"] = cmp.mapping.confirm({ select = false })), not quoted strings.

Closes #39. nvim-cmp ships no default keymaps, so the completion menu (including the path source) appeared but nothing could navigate or accept it. Bind the usual set in `plugins.cmp.settings.mapping`: - `<C-n>` / `<C-p>` and `<Tab>` / `<S-Tab>` — select next/previous - `<C-Space>` — open the menu - `<C-e>` — abort - `<CR>` — confirm with `select = false` (bare Enter stays a newline unless an entry is highlighted) Documentation: `KEYBINDINGS.md` gains a completion-menu table under the Neovim section covering these keys, and the Neovim summary is reworded accordingly. Verified by rendering the generated nvim config: the mappings emit as raw Lua (e.g. `["<CR>"] = cmp.mapping.confirm({ select = false })`), not quoted strings.
lyrathorpe added 1 commit 2026-06-23 16:18:24 +01:00
feat(editor): add nvim-cmp completion keymaps
CI / flake (pull_request) Successful in 4m13s
304b9a413a
nvim-cmp ships no default mappings, so the completion menu (including the
path source) appeared but nothing could navigate or accept it. Bind the
usual set: C-n/C-p and Tab/S-Tab to move, C-Space to open, C-e to abort,
and <CR> to confirm with select=false so a bare Enter stays a newline
unless an entry is explicitly highlighted.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
lyrathorpe added 1 commit 2026-06-23 16:28:41 +01:00
docs(editor): document nvim-cmp completion menu keybindings
CI / flake (pull_request) Successful in 4m3s
781c45a47c
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>
lyrathorpe force-pushed feat/cmp-completion-keymaps from c5e0cadcd2 to 781c45a47c 2026-06-23 16:28:41 +01:00 Compare
lyrathorpe merged commit 6064a5a1a7 into main 2026-06-23 16:33:13 +01:00
lyrathorpe deleted branch feat/cmp-completion-keymaps 2026-06-23 16:33:14 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lyrathorpe/nixfiles#40