home: vim: completion: limit 'buffer' suggestions

Otherwise it gets overwhelming, and most are useless.
This commit is contained in:
Bruno BELANYI 2022-03-06 11:54:21 +01:00
parent 5b8e410596
commit b8bd1ef2b4

View file

@ -12,7 +12,7 @@ cmp.setup({
{ name = "path", priority_weight = 110 },
{ name = "nvim_lsp", priority_weight = 100 },
{ name = "nvim_lua", priority_weight = 90 },
{ name = "buffer", priority_weight = 50 },
{ name = "buffer", max_item_count = 5, priority_weight = 50 },
},
sorting = {
comparators = {