mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
fix: avoid errors caused by echoing messages (#242)
This error below occurs when it takes long time to init the plugin. E5560: nvim_echo must not be called in a lua loop callback
This commit is contained in:
parent
58c0089414
commit
a7ebbb485d
@ -47,7 +47,7 @@ function Frecency:setup()
|
||||
return done
|
||||
end)
|
||||
if not ok then
|
||||
log.error("failed to setup:", status == -1 and "timed out" or "interrupted")
|
||||
error("failed to setup:" .. (status == -1 and "timed out" or "interrupted"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user