feat(cache): make ttl configurable

This commit is contained in:
Folke Lemaitre 2022-12-25 16:26:17 +01:00
parent 9837d5be7e
commit 4aa362e8dc
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 3 additions and 2 deletions

View file

@ -384,6 +384,7 @@ return {
-- * VimEnter: not useful to cache anything else beyond startup
-- * BufReadPre: this will be triggered early when opening a file from the command line directly
disable_events = { "VimEnter", "BufReadPre" },
ttl = 3600 * 24 * 5, -- keep unused modules for up to 5 days
},
reset_packpath = true, -- reset the package path to improve startup time
rtp = {