mirror of https://github.com/folke/lazy.nvim.git
style: cache debug
This commit is contained in:
parent
ceeeda36e8
commit
0f5ceb9012
|
@ -19,6 +19,14 @@ function M.get(key)
|
|||
end
|
||||
end
|
||||
|
||||
function M.debug()
|
||||
local ret = {}
|
||||
for key, value in pairs(cache) do
|
||||
ret[key] = #value
|
||||
end
|
||||
return ret
|
||||
end
|
||||
|
||||
function M.set(key, value)
|
||||
cache[key] = value
|
||||
used[key] = true
|
||||
|
|
Loading…
Reference in New Issue