* [WIP]: Mon 28 Sep 2020 01:08:24 PM EDT * add much much better tracking. so much less hax * status updates, oneshot job updates, etc. * remove temp function * add status function * asdfasdfasdf
24 lines
535 B
Lua
24 lines
535 B
Lua
local telescope = require('telescope')
|
|
|
|
-- Uhh, finder should probably just GET the results
|
|
-- and then update some table.
|
|
-- When updating the table, we should call filter on those items
|
|
-- and then only display ones that pass the filter
|
|
local rg_finder = telescope.finders.new {
|
|
fn_command = function(_, prompt)
|
|
return string.format('rg --vimgrep %s', prompt)
|
|
end,
|
|
|
|
responsive = false
|
|
}
|
|
|
|
local p = telescope.pickers.new {
|
|
previewer = telescope.previewers.vim_buffer
|
|
}
|
|
p:find {
|
|
prompt = 'grep',
|
|
finder = rg_finder
|
|
}
|
|
|
|
|