feat(editor): add nvim-cmp completion keymaps #40
Reference in New Issue
Block a user
Delete Branch "feat/cmp-completion-keymaps"
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?
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 withselect = false(bare Enter stays a newline unless an entry is highlighted)Documentation:
KEYBINDINGS.mdgains 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.c5e0cadcd2to781c45a47c