feat(r): add blink support for cmp-r

This commit is contained in:
EraPartner 2024-12-14 13:49:29 +01:00
parent dc4345a5ee
commit 46081444b0
No known key found for this signature in database

View file

@ -47,6 +47,22 @@ return {
require("r.pdf.generic").open = vim.ui.open require("r.pdf.generic").open = vim.ui.open
end, end,
}, },
{
"saghen/blink.cmp",
optional = true,
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,
},
{ {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
optional = true, optional = true,