diff options
| author | Senghan Bright <senghan.bright@deltaprojects.com> | 2021-01-28 22:39:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-28 16:39:05 -0500 |
| commit | 9d4670c74898c6050546580c71211746b9bb8aa7 (patch) | |
| tree | 26c8676ed3fd561890a2e59bfc69ccd43a01d5c1 /lua/telescope/finders.lua | |
| parent | 5995a8be8faaa2c6e8693ca52f2320cb4a80e3fa (diff) | |
feat: allow a callback to be called on on_lines update (for filtering tags from query text) (#455)
* allow a callback to be called on on_lines update
* .
* remove unused _filter_marker var
* nit: Move to table and implement 'close'
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
Diffstat (limited to 'lua/telescope/finders.lua')
| -rw-r--r-- | lua/telescope/finders.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/telescope/finders.lua b/lua/telescope/finders.lua index 7bc4ec5..cf616b0 100644 --- a/lua/telescope/finders.lua +++ b/lua/telescope/finders.lua @@ -11,6 +11,8 @@ local _callable_obj = function() obj.__index = obj obj.__call = function(t, ...) return t:_find(...) end + obj.close = function() end + return obj end @@ -33,7 +35,7 @@ local JobFinder = _callable_obj() function JobFinder:new(opts) opts = opts or {} -> assert(not opts.results, "`results` should be used with finder.new_table") + assert(not opts.results, "`results` should be used with finder.new_table") assert(not opts.static, "`static` should be used with finder.new_oneshot_job") local obj = setmetatable({ |
