From 6a45f1f198e10d87e6b358319075da7edd3fa555 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 25 Sep 2023 15:49:26 -0500 Subject: [PATCH] refactor(nvim): return cmp sources as part of standard sources --- dots/.config/nvim/lua/plugins/configs/cmp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/cmp.lua b/dots/.config/nvim/lua/plugins/configs/cmp.lua index 1fff07cb..13e05ed2 100644 --- a/dots/.config/nvim/lua/plugins/configs/cmp.lua +++ b/dots/.config/nvim/lua/plugins/configs/cmp.lua @@ -129,7 +129,7 @@ return { { name = "spell", keyword_length = 2 }, } - return vim.tbl_deep_extend("force", default_sources, sources) + return cmp.config.sources(vim.tbl_deep_extend("force", default_sources, sources)) end cmp.setup({ formatting = { @@ -305,7 +305,7 @@ return { end end, { "i", "s" }), }, - sources = cmp.config.sources(standard_sources()), + sources = standard_sources(), sorting = { comparators = { compare.score,