Files
telescope.nvim/scratch/simple_rg.lua
TJ DeVries ae7fd0d27a feat: Add status, better debug, and some associated refactors
* [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
2020-09-29 22:52:38 -04:00

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
}