feat!: set the default DB path to XDG_STATE_HOME (#204)

* feat: access user opts from config.ext_config

* feat!: set the default DB path to XDG_STATE_HOME

* feat: add fallback logic to detect old DB path

* docs: add note for this change
This commit is contained in:
JINNOUCHI Yasushi
2024-05-25 17:27:08 +09:00
committed by GitHub
parent 08e3ad80fc
commit 865f51a611
4 changed files with 28 additions and 5 deletions

View File

@@ -241,11 +241,17 @@ If `true`, it removes stale entries count over than
*telescope-frecency-configuration-db_root*
db_root ~
Default: `vim.fn.stdpath "data"`
Default: `vim.fn.stdpath "state"`
Type: `string`
Path to the parent directory of custom database location. Defaults to
`$XDG_DATA_HOME/nvim` if unset.
|$XDG_STATE_HOME|/nvim (see |stdpath()|) if unset.
NOTE: The default value was `vim.fn.stdpath "data"`. If you doesn't set this
option and you have DB in `vim.fn.stdpath "data"` instead of
`vim.fn.stdpath "state"`, it uses the one in the old path for backward
compatibility. See the detail in the issue below.
https://github.com/nvim-telescope/telescope-frecency.nvim/issues/200
*telescope-frecency-configuration-db_safe_mode*
db_safe_mode ~