mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2026-02-04 06:42:06 +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:
committed by
GitHub
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
|
||||
|
||||
Reference in New Issue
Block a user