mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(r): add blink support for cmp-r
This commit is contained in:
parent
dc4345a5ee
commit
46081444b0
1 changed files with 16 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue