From a1be1fde9c1e8ca66bff00e010256a22a4f0ff71 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 28 Sep 2022 14:49:30 -0500 Subject: [PATCH] feat(nvim): better cmp triggering for buffer/rg matching --- .../primary/config/lua/plugins/configs/_cmp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua b/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua index 63be092b..63dc8683 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua @@ -117,11 +117,12 @@ cmp.setup({ sources = cmp.config.sources({ { name = "nvim_lsp", priority = 10 }, { name = "luasnip", priority = 9 }, -- For luasnip users. - { name = "fuzzy_buffer", priority = 8 }, + { name = "fuzzy_buffer", priority = 8, keyword_length = 3, max_item_count = 10 }, { name = "rg", priority = 7, keyword_length = 3, + max_item_count = 10, }, { name = "path", priority = 6 }, { name = "zsh", priority = 5 },