mirror of https://github.com/folke/lazy.nvim.git
fix: decompilation fixes
This commit is contained in:
parent
ae0b87181d
commit
57d024ef19
|
@ -58,7 +58,7 @@ function M.setup(opts)
|
||||||
pattern = "VeryLazy",
|
pattern = "VeryLazy",
|
||||||
once = true,
|
once = true,
|
||||||
callback = function()
|
callback = function()
|
||||||
-- require("lazy.view").setup()
|
require("lazy.view").setup()
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ function M.clear()
|
||||||
for pack, plugin in pairs(Config.plugins) do
|
for pack, plugin in pairs(Config.plugins) do
|
||||||
-- clear finished tasks
|
-- clear finished tasks
|
||||||
if plugin.tasks then
|
if plugin.tasks then
|
||||||
---@param task Task
|
---@param task LazyTask
|
||||||
plugin.tasks = vim.tbl_filter(function(task)
|
plugin.tasks = vim.tbl_filter(function(task)
|
||||||
return task.running
|
return task.running
|
||||||
end, plugin.tasks)
|
end, plugin.tasks)
|
||||||
|
|
|
@ -24,7 +24,7 @@ local M = {}
|
||||||
---@field loaded? boolean
|
---@field loaded? boolean
|
||||||
---@field installed? boolean
|
---@field installed? boolean
|
||||||
---@field run? string|fun()
|
---@field run? string|fun()
|
||||||
---@field tasks? Task[]
|
---@field tasks? LazyTask[]
|
||||||
---@field dirty? boolean
|
---@field dirty? boolean
|
||||||
|
|
||||||
---@param plugin LazyPlugin
|
---@param plugin LazyPlugin
|
||||||
|
|
|
@ -141,9 +141,10 @@ end
|
||||||
|
|
||||||
---@return {branch: string, hash:string}?
|
---@return {branch: string, hash:string}?
|
||||||
function M.git_info(dir)
|
function M.git_info(dir)
|
||||||
if M.head(dir .. "/.git/HEAD") then
|
local line = M.head(dir .. "/.git/HEAD")
|
||||||
|
if line then
|
||||||
---@type string, string
|
---@type string, string
|
||||||
local ref, branch = slot1:match("ref: (refs/heads/(.*))")
|
local ref, branch = line:match("ref: (refs/heads/(.*))")
|
||||||
|
|
||||||
if ref then
|
if ref then
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue