fix(nvim): properly setup sources for nvim-cmp

This commit is contained in:
Price Hiller 2023-09-25 16:11:21 -05:00
parent 6a45f1f198
commit 4fa3020986
No known key found for this signature in database

View File

@ -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 = {