Specify option instead of a function

This commit is contained in:
EraPartner 2024-12-14 15:41:04 +01:00
parent 46081444b0
commit a3924f7f46
No known key found for this signature in database

View file

@ -53,15 +53,13 @@ return {
dependencies = {
"R-nvim/cmp-r",
},
opts = function(_, opts)
table.insert(opts.sources.compat or {}, "cmp_r")
opts.sources.providers["cmp-r"] = vim.tbl_deep_extend(
"force",
opts.sources.providers["cmp-r"] or {},
{ name = "cmp_r", module = "blink.compat.source" }
)
end,
opts = {
sources = {
compat = {
cmp_r = { name = "cmp_r", module = "blink.compat.source" },
},
},
},
},
{
"hrsh7th/nvim-cmp",