From 4fa30209865498bbbad72ded90bf68354b19ddad Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 25 Sep 2023 16:11:21 -0500 Subject: [PATCH] fix(nvim): properly setup sources for nvim-cmp --- dots/.config/nvim/lua/plugins/configs/cmp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/cmp.lua b/dots/.config/nvim/lua/plugins/configs/cmp.lua index 13e05ed2..7843d7e4 100644 --- a/dots/.config/nvim/lua/plugins/configs/cmp.lua +++ b/dots/.config/nvim/lua/plugins/configs/cmp.lua @@ -129,7 +129,8 @@ return { { name = "spell", keyword_length = 2 }, } - return cmp.config.sources(vim.tbl_deep_extend("force", default_sources, sources)) + vim.tbl_map(function(source) table.insert(default_sources, 1, source) end, sources) + return cmp.config.sources(default_sources) end cmp.setup({ formatting = {