nvim-cmp: completion menu appears but cannot be selected #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
When typing (e.g. file paths), the nvim-cmp completion menu appears, but there is no way to navigate it or accept a suggestion.
Cause
nvim-cmp ships no default keymaps. The cmp setup in
lyrathorpe/home/editor.nixdefinedsourcesandsnippetbut nomapping, so the menu rendered while nothing was bound to move through it or confirm an entry.Fix
Add a standard mapping set to
plugins.cmp.settings:<C-n>/<C-p>and<Tab>/<S-Tab>— select next/previous item<C-Space>— open the menu<C-e>— abort<CR>— confirm withselect = false(a bare Enter stays a newline unless an entry is explicitly highlighted)