mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Specify option instead of a function
This commit is contained in:
parent
46081444b0
commit
a3924f7f46
1 changed files with 7 additions and 9 deletions
|
|
@ -53,15 +53,13 @@ return {
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"R-nvim/cmp-r",
|
"R-nvim/cmp-r",
|
||||||
},
|
},
|
||||||
opts = function(_, opts)
|
opts = {
|
||||||
table.insert(opts.sources.compat or {}, "cmp_r")
|
sources = {
|
||||||
|
compat = {
|
||||||
opts.sources.providers["cmp-r"] = vim.tbl_deep_extend(
|
cmp_r = { name = "cmp_r", module = "blink.compat.source" },
|
||||||
"force",
|
},
|
||||||
opts.sources.providers["cmp-r"] or {},
|
},
|
||||||
{ name = "cmp_r", module = "blink.compat.source" }
|
},
|
||||||
)
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue