neovim: docs: suggest alternate mappings for nvim-cmp

This commit is contained in:
2024-09-01 15:38:13 +00:00
parent 3ca2c7ec53
commit 7d75b3c736

View File

@@ -37,6 +37,14 @@ with pkgs.vimPlugins;
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
-- alternate mappings:
-- ['<C-n>'] = cmp.mapping.select_next_item({
-- behavior = cmp.SelectBehavior.Insert }
-- ),
-- ['<C-m>'] = cmp.mapping.select_prev_item({
-- behavior = cmp.SelectBehavior.Insert }
-- ),
-- ['<C-e>'] = cmp.mapping.close(),
},
sources = cmp.config.sources({
{ name = 'nvim_lsp' },