Search current buffer content
spywhere opened this issue · comments
Hi, I can't help but notice that the project contains producer.vim.currentbuffer
which to me it seems to populate what I want (a content to search for). Now, I already tried to figure out how to use it and here's the result...
local snap = require('snap')
snap.run({
producer = snap.get('producer.vim.currentbuffer'),
select = snap.get('select.currentbuffer').select,
})
And as you can see, the producer does indeed populate the content of current file, but the filtering is not working.
So, could you help on how to setup or see why the filtering is not properly working?
nvm, got it working with
local snap = require('snap')
snap.run({
producer = snap.get('consumer.fzf')(snap.get('producer.vim.currentbuffer')),
select = snap.get('select.currentbuffer').select
})