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:
Hanchin Hsieh
2025-02-21 14:16:51 +08:00
parent 45604b25f8
commit 25a6bd6e59

View File

@@ -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 {