nvim: cmp setting to only enable buffer completion when the word is 5

chars long or more
This commit is contained in:
mequidis
2022-05-17 16:37:08 +03:00
parent f3bd39302d
commit 0cac7e88ba

View File

@ -21,9 +21,9 @@ cmp.setup({
}), }),
}, },
sources = { sources = {
{ name = "path" },
{ name = "nvim_lsp" }, { name = "nvim_lsp" },
{ name = "buffer" }, { name = "path" },
{ name = "buffer", keyword_length = 5 },
{ name = "vsnip" }, { name = "vsnip" },
{ name = "orgmode" }, { name = "orgmode" },
}, },