yank completion source for nvim-cmp.
Use your favorite plugin manager:
- vim-plug
Plug 'kbwo/cmp-yank'
require('cmp').setup({
sources = {
{
name = 'yank',
-- you can specify the directory to save yank history (optional)
yank_source_path = vim.getenv('HOME') .. '/dotfiles/history'
},
}
})