telescope-frecency.nvim
telescope-frecency.nvim copied to clipboard
How to disable `Telescope-Frecency: removed n missing entries.` in messages?
Hello there. Hope you're doing well.
Whenever Telescope-Frecency
sees a changed file, it shows Telescope-Frecency: removed 1 missing entries.
in the messages:
My current config:
frecency = {
show_scores = false,
show_unindexed = false,
ignore_patterns = { "*.git/*", "*/tmp/*" },
disable_devicons = false,
}
I looked into the doc and such disable_removed_missing_entries_messages
option doesn't exist. Is it possible to disable such messages?
Any help is much appreciated. Thank you!
A work-around is to modify db_client.lua
:
-
nvim ~/.local/share/nvim/site/pack/packer/start/telescope-frecency.nvim/lua/telescope/_extensions/frecency/db_client.lua
-
Comment out
print(('Telescope-Frecency: removed %d missing entries.'):format(#pending_remove))
FYI: I pr-ed #75 to use vim.notify
instead of print()
to show such messages. You can see them in floating windows not to bother you with using rcarriga/nvim-notify.
can wrap/re-define vim.notify
to filter out this message as shown here
I changed the initialization process and that message appears when you call :Telescope frecency
at the first time. I think it is less annoying.
If you want to remove that messages completely, try @FelipeLema's way above.