From f24a4e8a47d3f7408711009cebaef1c0aad8dc9f Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 1 Nov 2021 11:46:37 +0100 Subject: [PATCH] Feat: keyword_lenght for buffer and spell --- nvim/.config/nvim/lua/completion.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nvim/.config/nvim/lua/completion.lua b/nvim/.config/nvim/lua/completion.lua index cc261e6..6324447 100644 --- a/nvim/.config/nvim/lua/completion.lua +++ b/nvim/.config/nvim/lua/completion.lua @@ -89,10 +89,17 @@ cmp.setup{ sources = { { name = 'vsnip' }, { name = 'nvim_lsp' }, - { name = 'buffer' }, { name = 'path' }, - -- { name = 'spell' }, - } + { name = 'buffer', keyword_length = 4 }, + { name = 'spell', keyword_length = 4 }, + }, + experimental = { + -- I like the new menu better! Nice work hrsh7th + native_menu = false, + + -- Let's play with this for a day or two + ghost_text = true, + }, } vim.cmd [[autocmd FileType TelescopePrompt lua require('cmp').setup.buffer { enabled = false }]]