mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 01:08:59 +02:00
faet(util): added Util.on_very_lazy
This commit is contained in:
parent
e91903e810
commit
cc3070d30e
1 changed files with 10 additions and 0 deletions
|
@ -20,6 +20,16 @@ function M.has(plugin)
|
|||
return require("lazy.core.config").plugins[plugin] ~= nil
|
||||
end
|
||||
|
||||
---@param fn fun()
|
||||
function M.on_very_lazy(fn)
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "VeryLazy",
|
||||
callback = function()
|
||||
fn()
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
---@param name string
|
||||
function M.opts(name)
|
||||
local plugin = require("lazy.core.config").plugins[name]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue