From b8bd1ef2b443edf5bff4dd39267221cc6c10fdfb Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 6 Mar 2022 11:54:21 +0100 Subject: [PATCH] home: vim: completion: limit 'buffer' suggestions Otherwise it gets overwhelming, and most are useless. --- home/vim/plugin/settings/completion.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/vim/plugin/settings/completion.vim b/home/vim/plugin/settings/completion.vim index fce33ea..0d0507f 100644 --- a/home/vim/plugin/settings/completion.vim +++ b/home/vim/plugin/settings/completion.vim @@ -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 = {