From becce26683d27fd2ec535ca3562eb5df853f6dde Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 22 Oct 2021 21:20:37 +0100 Subject: [PATCH] upddate cmp settings --- lua/init-cmp.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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, }, ... }