mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(yanky): add yanky as completion source
This commit is contained in:
parent
7d570fad79
commit
6c5a876887
1 changed files with 12 additions and 0 deletions
12
lua/lazyvim/plugins/extras/coding/yanky-completion.lua
Normal file
12
lua/lazyvim/plugins/extras/coding/yanky-completion.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
return {
|
||||||
|
-- add yanky as completion source
|
||||||
|
{
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
dependencies = { "chrisgrieser/cmp_yanky" },
|
||||||
|
opts = function(_, opts)
|
||||||
|
opts.sources = require("cmp").config.sources(vim.list_extend(opts.sources, {
|
||||||
|
{ name = "cmp_yanky" },
|
||||||
|
}))
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue