From a4b0ab3c8408c1f3050b4758ff3bb34f6cbb1bad Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 10 May 2024 02:49:22 -0500 Subject: [PATCH] refactor(nvim): improve cmdline cmp completions --- users/price/dots/.config/nvim/lua/plugins/configs/cmp.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/cmp.lua b/users/price/dots/.config/nvim/lua/plugins/configs/cmp.lua index 28ef5991..205b10e0 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/cmp.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/cmp.lua @@ -439,6 +439,7 @@ return { cmp.setup.cmdline(":", { mapping = cmp.mapping.preset.cmdline(), sources = cmp.config.sources({ + { name = "cmdline_history", max_item_count = 3 }, { name = "cmdline", option = { @@ -447,9 +448,7 @@ return { }, }, priority = 100, - max_item_count = 5, }, - { name = "cmdline_history", max_item_count = 3 }, }), }) end,