summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-10-25 08:09:07 -0400
committerTJ DeVries <devries.timothyj@gmail.com>2020-10-25 08:09:07 -0400
commit477261e5c06fb627118a8df8077ff47392b8a16f (patch)
tree6c85bb577e4b4ef7234e0e0eba6539adfa8c99f3 /lua/telescope/pickers.lua
parent59ef37ded43a77a4c0f35be434f1ea72a407ce84 (diff)
feat: Improve filtering ideas for sorters.
Diffstat (limited to 'lua/telescope/pickers.lua')
-rw-r--r--lua/telescope/pickers.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index 935f6cf..e77e0e9 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -394,6 +394,10 @@ function Picker:find()
local prompt = vim.trim(vim.api.nvim_buf_get_lines(prompt_bufnr, first_line, last_line, false)[1]:sub(#prompt_prefix))
+ if self.sorter then
+ self.sorter:_start(prompt)
+ end
+
-- TODO: Statusbar possibilities here.
-- vim.api.nvim_buf_set_virtual_text(prompt_bufnr, 0, 1, { {"hello", "Error"} }, {})