mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
feat: state now accepts a name for the bucket
This commit is contained in:
parent
ed22be731a
commit
0cb572a837
1 changed files with 1 additions and 1 deletions
|
|
@ -21,5 +21,5 @@ state = setmetatable({}, {
|
|||
cache[bucket] = cache[bucket] or {}
|
||||
cache[bucket][k] = v
|
||||
end,
|
||||
__call = function() return setmetatable({ __yazi_bucket = YAZI_PLUGIN_NAME }, sub_mt) end,
|
||||
__call = function(_, name) return setmetatable({ __yazi_bucket = name or YAZI_PLUGIN_NAME }, sub_mt) end,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue