Feat: keyword_lenght for buffer and spell

This commit is contained in:
Bertrand Benjamin 2021-11-01 11:46:37 +01:00
parent f26fd07e96
commit f24a4e8a47
1 changed files with 10 additions and 3 deletions

View File

@ -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 }]]