docs: update read me with db_root information.

This commit is contained in:
Senghan Bright 2021-08-04 10:58:51 +02:00
parent 65a7d89eb8
commit f7ee2172da

View File

@ -123,6 +123,7 @@ Determines if non-indexed files are included in workspace filter results.
telescope.setup {
extensions = {
frecency = {
db_root = "home/my_username/path/to/db_root"
show_scores = false,
show_unindexed = true,
ignore_patterns = {"*.git/*", "*/tmp/*"},
@ -137,6 +138,11 @@ telescope.setup {
}
```
### SQL database location
The default location for the sqlite3 database is `$XDG_DATA_HOME/nvim` (eg `~/.local/share/nvim/` on linux).
This can be configured with the `db_root` config option.
### SQL database maintainance
By default, frecency will prune files that no longer exist from the database.