|
|
@ -651,9 +651,11 @@ require('lazy').setup({
|
|
|
|
-- No, but seriously. Please read `:help ins-completion`, it is really good!
|
|
|
|
-- No, but seriously. Please read `:help ins-completion`, it is really good!
|
|
|
|
mapping = cmp.mapping.preset.insert {
|
|
|
|
mapping = cmp.mapping.preset.insert {
|
|
|
|
-- Select the [n]ext item
|
|
|
|
-- Select the [n]ext item
|
|
|
|
['<C-n>'] = cmp.mapping.select_next_item(),
|
|
|
|
-- original: ['<C-n>'] = cmp.mapping.select_next_item(),
|
|
|
|
|
|
|
|
['<Tab>'] = cmp.mapping.select_next_item(),
|
|
|
|
-- Select the [p]revious item
|
|
|
|
-- Select the [p]revious item
|
|
|
|
['<C-p>'] = cmp.mapping.select_prev_item(),
|
|
|
|
-- original: ['<C-p>'] = cmp.mapping.select_prev_item(),
|
|
|
|
|
|
|
|
['<S-Tab>'] = cmp.mapping.select_prev_item(),
|
|
|
|
|
|
|
|
|
|
|
|
-- Scroll the documentation window [b]ack / [f]orward
|
|
|
|
-- Scroll the documentation window [b]ack / [f]orward
|
|
|
|
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
|
|
|
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
|
|
@ -663,7 +665,7 @@ require('lazy').setup({
|
|
|
|
-- This will auto-import if your LSP supports it.
|
|
|
|
-- This will auto-import if your LSP supports it.
|
|
|
|
-- This will expand snippets if the LSP sent a snippet.
|
|
|
|
-- This will expand snippets if the LSP sent a snippet.
|
|
|
|
-- original: ['<C-y>'] = cmp.mapping.confirm { select = true },
|
|
|
|
-- original: ['<C-y>'] = cmp.mapping.confirm { select = true },
|
|
|
|
['<Tab>'] = cmp.mapping.confirm { select = true },
|
|
|
|
['<Return>'] = cmp.mapping.confirm { select = true },
|
|
|
|
|
|
|
|
|
|
|
|
-- Manually trigger a completion from nvim-cmp.
|
|
|
|
-- Manually trigger a completion from nvim-cmp.
|
|
|
|
-- Generally you don't need this, because nvim-cmp will display
|
|
|
|
-- Generally you don't need this, because nvim-cmp will display
|
|
|
|