Fix absolute garbage

This commit is contained in:
Beric Bearnson 2024-03-04 05:20:09 +00:00
parent 7ad5efafbf
commit 9092b5613e
1 changed files with 8 additions and 3 deletions

View File

@ -676,14 +676,19 @@ require('lazy').setup {
-- No, but seriously. Please read `:help ins-completion`, it is really good!
mapping = cmp.mapping.preset.insert {
-- Select the [n]ext item
['<C-n>'] = cmp.mapping.select_next_item(),
['<Tab>'] = cmp.mapping.select_next_item(),
-- Select the [p]revious item
['<C-p>'] = cmp.mapping.select_prev_item(),
['<S-Tab>'] = cmp.mapping.select_prev_item(),
-- Accept ([y]es) the completion.
-- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet.
['<C-y>'] = cmp.mapping.confirm { select = true },
-- ['<C-y>'] = cmp.mapping.confirm { select = true },
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
},
-- Manually trigger a completion from nvim-cmp.
-- Generally you don't need this, because nvim-cmp will display