feat: add a bit better writer support

This commit is contained in:
TJ DeVries
2020-09-11 14:36:57 -04:00
parent cf21d83e4c
commit d96d89711c
2 changed files with 13 additions and 10 deletions

View File

@@ -4,18 +4,12 @@ local finders = require('telescope.finders')
local pickers = require('telescope.pickers')
local sorters = require('telescope.sorters')
local my_list = {'a', 'b', 'c'}
pickers.new({
prompt = 'Telescope Builtin',
finder = finders.new_table {
results = {"hello\nworld", "other", "item"},
entry_maker = false and function(line)
return {
value = line,
ordinal = line,
display = "wow: // " .. line,
}
end,
results = my_list,
},
sorter = sorters.get_norcalli_sorter(),
sorter = sorters.get_generic_fuzzy_sorter(),
}):find()