From 39381d1da91960c8593a889d2ddbc92f342cf12e Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Sun, 7 Apr 2024 18:43:45 +0200 Subject: [PATCH] Adjust minimal characters for completion --- lua/code-completion.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/code-completion.lua b/lua/code-completion.lua index b3564b9..dae4bea 100644 --- a/lua/code-completion.lua +++ b/lua/code-completion.lua @@ -50,15 +50,15 @@ cmp.setup({ -- installed sources for code suggestion sources = cmp.config.sources({ - { name = "ultisnips", keyword_length = 3 }, + { name = "ultisnips", keyword_length = 1 }, { name = "path" }, { name = "nvim_lsp", keyword_length = 2 }, { name = "nvim_lsp_signature_help" }, { name = "nvim_lua", keyword_length = 2 }, - { name = "buffer", keyword_length = 1 }, + { name = "buffer", keyword_length = 2 }, { name = "calc" }, { name = "lua-latex-symbols", option = { cache = true } }, - { name = "cmp_tabnine", keyword_length = 6 }, + { name = "cmp_tabnine", keyword_length = 3 }, }), -- add formatting of the different sources