diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-03 23:56:49 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-03 23:56:49 -0400 |
| commit | 839f57efb37cba7a9542b67b31370e1babaf194a (patch) | |
| tree | 2e502a58d83bc528e78b3d44d92134ec96d1345a /lua/tests | |
| parent | 737363097b8710566cf624776f1d0a18c03a0d8b (diff) | |
feat: Major improvements in API. Particularly relating to entries.
Diffstat (limited to 'lua/tests')
| -rw-r--r-- | lua/tests/manual/newline_tables.lua | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lua/tests/manual/newline_tables.lua b/lua/tests/manual/newline_tables.lua index 879d006..26d2b89 100644 --- a/lua/tests/manual/newline_tables.lua +++ b/lua/tests/manual/newline_tables.lua @@ -1,15 +1,21 @@ -RELOAD('telescope') +require('plenary.reload').reload_module('telescope') -local actions = require('telescope.actions') local finders = require('telescope.finders') -local previewers = require('telescope.previewers') local pickers = require('telescope.pickers') local sorters = require('telescope.sorters') -local utils = require('telescope.utils') pickers.new({ prompt = 'Telescope Builtin', - finder = finders.new_table({"hello\nworld", "other", "item"}), + finder = finders.new_table { + results = {"hello\nworld", "other", "item"}, + entry_maker = false and function(line) + return { + value = line, + ordinal = line, + display = "wow: // " .. line, + } + end, + }, sorter = sorters.get_norcalli_sorter(), }):find() |
