From 5ae9d2d2f872f146ca2942a5646d1ea6a1b1f80e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 7 Sep 2022 23:00:45 -0500 Subject: [PATCH] refactor(nvim): optimize rg-cmp --- .../primary/config/lua/plugins/configs/_cmp.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 def062e8..46b7211b 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/_cmp.lua @@ -159,17 +159,18 @@ cmp.setup({ { name = "nvim_lsp", priority = 10 }, { name = "luasnip", priority = 9 }, -- For luasnip users. { name = "fuzzy_buffer", priority = 8 }, - { name = "rg", priority = 7 }, + { + name = "rg", + priority = 7, + keyword_length = 3, + }, { name = "path", priority = 6 }, { name = "zsh", priority = 5 }, { name = "emoji", keyword_length = 2 }, { name = "neorg" }, { name = "calc" }, { name = "npm", keyword_length = 2 }, - { - name = "dictionary", - keyword_length = 2, - }, + { name = "dictionary", keyword_length = 2 }, }), sorting = { comparators = {