mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-24 09:49:07 +02:00
feat: lazy caching now works with functions that have upvalues
This commit is contained in:
parent
48199f8031
commit
fe33e4e3dd
9 changed files with 161 additions and 187 deletions
|
@ -42,6 +42,10 @@ end
|
|||
function Task:_done()
|
||||
self.running = false
|
||||
vim.cmd("do User LazyRender")
|
||||
vim.api.nvim_exec_autocmds("User", {
|
||||
pattern = "LazyPlugin" .. self.type:sub(1, 1):upper() .. self.type:sub(2),
|
||||
data = { plugin = self.plugin.name },
|
||||
})
|
||||
end
|
||||
|
||||
function Task:clean()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue