docs: add note for disabling the dialog (#235)

See https://www.reddit.com/r/neovim/comments/1egczrs/how_to_sort_files_in_telescope_by_showing_the/
This commit is contained in:
JINNOUCHI Yasushi 2024-08-02 18:20:41 +09:00 committed by GitHub
parent 87ccbae5d2
commit 25d01edae8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,7 @@ Function |telescope-frecency-function|
Configuration |telescope-frecency-configuration| Configuration |telescope-frecency-configuration|
Database |telescope-frecency-database| Database |telescope-frecency-database|
Highlight Groups |telescope-frecency-highlight-groups| Highlight Groups |telescope-frecency-highlight-groups|
FAQ |telescope-frecency-faq|
Reference |telescope-frecency-reference| Reference |telescope-frecency-reference|
@ -789,6 +790,35 @@ Default: link to |hl-WildMenu|
This is used to highlight query filter such as `:CWD:`. This is used to highlight query filter such as `:CWD:`.
==============================================================================
FAQ *telescope-frecency-faq*
*telescope-frecency-faq-removenentriesfromdatabase*
“remove n entries from database?” dialog appears in startup ~
This dialog informs you that this plugin will delete entries because stale
ones exist in DB.
If you feel this annoying, you can disable it by config. See
|telescope-frecency-configuration-db_safe_mode|,
|telescope-frecency-configuration-auto_validate|.
>lua
{
"nvim-telescope/telescope.nvim",
config = function()
local telescope = require "telescope"
telescope.setup {
extensions = {
frecency = {
-- completely disable the dialog
db_safe_mode = false,
},
},
}
telescope.load_extension "frecency"
end,
}
============================================================================== ==============================================================================
REFERENCE *telescope-frecency-reference* REFERENCE *telescope-frecency-reference*