summaryrefslogtreecommitdiff
path: root/scratch/simple_rg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scratch/simple_rg.lua')
-rw-r--r--scratch/simple_rg.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/scratch/simple_rg.lua b/scratch/simple_rg.lua
deleted file mode 100644
index 8bd2586..0000000
--- a/scratch/simple_rg.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-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
-}
-
-