mirror of https://github.com/folke/lazy.nvim.git
docs: fixed the cache options
This commit is contained in:
parent
0a34571e49
commit
1adebbbcc7
12
README.md
12
README.md
|
@ -125,8 +125,16 @@ require("lazy").setup({
|
||||||
frequency = 3600, -- check for updates every hour
|
frequency = 3600, -- check for updates every hour
|
||||||
},
|
},
|
||||||
performance = {
|
performance = {
|
||||||
---@type LazyCacheConfig
|
cache = {
|
||||||
cache = nil,
|
enabled = true,
|
||||||
|
path = vim.fn.stdpath("state") .. "/lazy.state",
|
||||||
|
-- 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 = { "VimEnter", "BufReadPre" },
|
||||||
|
},
|
||||||
reset_packpath = true, -- reset the package path to improve startup time
|
reset_packpath = true, -- reset the package path to improve startup time
|
||||||
rtp = {
|
rtp = {
|
||||||
reset = true, -- reset the runtime path to $VIMRUNTIME and your config directory
|
reset = true, -- reset the runtime path to $VIMRUNTIME and your config directory
|
||||||
|
|
Loading…
Reference in New Issue