upddate cmp settings

This commit is contained in:
Ray Elliott 2021-10-22 21:20:37 +01:00
parent c1e87b0b1a
commit becce26683
1 changed files with 5 additions and 2 deletions

View File

@ -14,7 +14,8 @@ cmp.setup({
end,
},
completion = {
keyword_length = 4,
keyword_length = 1,
max_item_count = 20,
-- autocomplete = false
},
snippet = {
@ -34,10 +35,12 @@ cmp.setup({
{
name = 'nvim_lsp',
max_item_count = 8,
keyword_length = 3,
},
{ name = 'path' },
{
name = 'buffer',
keyword_length = 4,
max_item_count = 20,
},
{
@ -48,7 +51,7 @@ cmp.setup({
{
name = 'ultisnips',
priority_weight = 10,
keyword_length = 2,
keyword_length = 1,
},
...
}