mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
parent
631bf1af1d
commit
880e89eadb
@ -28,10 +28,14 @@ end
|
|||||||
---This is called when `:Telescope frecency` is called at the first time.
|
---This is called when `:Telescope frecency` is called at the first time.
|
||||||
---@return nil
|
---@return nil
|
||||||
function Frecency:setup()
|
function Frecency:setup()
|
||||||
self:assert_db_entries()
|
-- HACK: Wihout this wrapping, it spoils background color detection.
|
||||||
if config.auto_validate then
|
-- See https://github.com/nvim-telescope/telescope-frecency.nvim/issues/210
|
||||||
self:validate_database()
|
vim.defer_fn(function()
|
||||||
end
|
self:assert_db_entries()
|
||||||
|
if config.auto_validate then
|
||||||
|
self:validate_database()
|
||||||
|
end
|
||||||
|
end, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
---This can be calledBy `require("telescope").extensions.frecency.frecency`.
|
---This can be calledBy `require("telescope").extensions.frecency.frecency`.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user