update-2022-04-12

This commit is contained in:
Lee Tang
2022-04-12 23:03:05 +08:00
parent 0b56283159
commit 76e08244e7
17 changed files with 290 additions and 68 deletions

View File

@@ -21,9 +21,8 @@ cmp.setup({
return vim_item
end,
},
mapping = {
['<C-y>'] = cmp.mapping.confirm({ select = true }),
['<C-d>'] = cmp.mapping.scroll_docs(-4),
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
--["<C-e>"] = cmp.mapping.close(),
@@ -34,7 +33,13 @@ cmp.setup({
behavior = cmp.ConfirmBehavior.Replace,
select = true,
}),
},
['<C-y>'] = cmp.mapping.confirm({ select = true }),
--},
}),
--mapping = {
----['<C-n>'] = cmp.mapping.select_next_item(),
----['<C-p>'] = cmp.mapping.select_prev_item(),
sources = {
{ name = 'nvim_lsp' },
{ name = 'buffer' },