From 477261e5c06fb627118a8df8077ff47392b8a16f Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Sun, 25 Oct 2020 08:09:07 -0400 Subject: feat: Improve filtering ideas for sorters. --- lua/telescope/pickers.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/telescope/pickers.lua') 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"} }, {}) -- cgit v1.2.3