feat: support opts.workspace (#68)

This commit is contained in:
Munif Tanjim
2022-08-12 19:42:45 +06:00
committed by GitHub
parent 388016c512
commit 32f4b59ea1
2 changed files with 17 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ local frecency = function(opts)
if matched then
query_text = query_text:sub(matched:len() + 1)
end
new_filter = new_filter or state.default_workspace
new_filter = new_filter or opts.workspace or state.default_workspace
local new_finder
local results_updated = update_results(new_filter)