neovim: docs: suggest alternate mappings for nvim-cmp
This commit is contained in:
@@ -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' },
|
||||
|
Reference in New Issue
Block a user