diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2021-08-20 11:11:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-20 11:11:24 -0400 |
| commit | a97af306c4e9c9a6fa7c886c0ffe3079822c5203 (patch) | |
| tree | f5e2b50a767e93618d0d8fdddb8a964c90633c8a /scratch/simplest_test.lua | |
| parent | d6d28dbe324de9826a579155076873888169ba0f (diff) | |
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.
Diffstat (limited to 'scratch/simplest_test.lua')
| -rw-r--r-- | scratch/simplest_test.lua | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/scratch/simplest_test.lua b/scratch/simplest_test.lua deleted file mode 100644 index c653632..0000000 --- a/scratch/simplest_test.lua +++ /dev/null @@ -1,30 +0,0 @@ -require('plenary.reload').reload_module('telescope') - -local telescope = require('telescope') - --- What is a finder? --- Finders return a list of stuff that you want to fuzzy look through. --- Finders can be static or not. --- Static finders just return a list that never changes --- Otherwise they return a new list on each input, you should handle them async. -local file_finder = telescope.finders.new { - static = true, - - fn_command = function() return 'git ls-files' end, -} - -local file_previewer = telescope.previewers.vim_buffer_or_bat - -local file_picker = telescope.pickers.new { - previewer = file_previewer -} - --- local file_sorter = telescope.sorters.get_ngram_sorter() --- local file_sorter = require('telescope.sorters').get_levenshtein_sorter() -local file_sorter = require('telescope.sorters').get_norcalli_sorter() - -file_picker:find { - prompt = 'Simple File', - finder = file_finder, - sorter = file_sorter, -} |
