From 8b672c41cbc015bf22a4a48a529676b15057855f Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 13 Feb 2023 11:59:03 +0100 Subject: [PATCH] docs: updated cache settings --- README.md | 10 +--------- lua/lazy/docs.lua | 5 ----- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/README.md b/README.md index 450d8f0..37fa84f 100644 --- a/README.md +++ b/README.md @@ -347,7 +347,7 @@ return { init = " ", import = " ", keys = " ", - lazy = "鈴 ", + lazy = "󰒲 ", loaded = "●", not_loaded = "○", plugin = " ", @@ -409,14 +409,6 @@ return { performance = { cache = { enabled = true, - path = vim.fn.stdpath("cache") .. "/lazy/cache", - -- Once one of the following events triggers, caching will be disabled. - -- To cache all modules, set this to `{}`, but that is not recommended. - -- The default is to disable on: - -- * 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 = { "UIEnter", "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 = { diff --git a/lua/lazy/docs.lua b/lua/lazy/docs.lua index da3a166..bf42e98 100644 --- a/lua/lazy/docs.lua +++ b/lua/lazy/docs.lua @@ -131,12 +131,7 @@ function M.colors() end function M.update() - local cache_config = M.extract("lua/lazy/core/cache.lua", "\nM%.config = ({.-\n})") local config = M.extract("lua/lazy/core/config.lua", "\nM%.defaults = ({.-\n})") - config = config:gsub( - "\n%s*%-%-%-@type LazyCacheConfig.*cache = nil,", - "\n" .. M.indent("cache = " .. cache_config .. ",", 4) - ) config = config:gsub("%s*debug = false.\n", "\n") M.save({ bootstrap = M.extract("lua/lazy/init.lua", "function M%.bootstrap%(%)\n(.-)\nend"),