From a97af306c4e9c9a6fa7c886c0ffe3079822c5203 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Fri, 20 Aug 2021 11:11:24 -0400 Subject: feat(performance): Major performance improvements using async v2 from @oberblastmeister (#987) * start: Working w/ async jobs * short circuit to using bad finder if you pass writer. --- scratch/simple_rg.lua | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 scratch/simple_rg.lua (limited to 'scratch/simple_rg.lua') 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 -} - - -- cgit v1.2.3