fix(search): filter kagi results to only include web pages (t == 0)
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
This commit is contained in:
@@ -135,6 +135,8 @@ M._defaults = {
|
||||
if body.data ~= nil then
|
||||
local jsn = vim
|
||||
.iter(body.data)
|
||||
-- search results only
|
||||
:filter(function(result) return result.t == 0 end)
|
||||
:map(
|
||||
function(result)
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user