diff --git a/lua/init-cmp.lua b/lua/init-cmp.lua index 487c34c..ba51a67 100644 --- a/lua/init-cmp.lua +++ b/lua/init-cmp.lua @@ -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, }, ... }