Skip to content

Commit

Permalink
fix: decompilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 20, 2022
1 parent ae0b871 commit 57d024e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lua/lazy/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function M.setup(opts)
pattern = "VeryLazy",
once = true,
callback = function()
-- require("lazy.view").setup()
require("lazy.view").setup()
end,
})

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function M.clear()
for pack, plugin in pairs(Config.plugins) do
-- clear finished tasks
if plugin.tasks then
---@param task Task
---@param task LazyTask
plugin.tasks = vim.tbl_filter(function(task)
return task.running
end, plugin.tasks)
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local M = {}
---@field loaded? boolean
---@field installed? boolean
---@field run? string|fun()
---@field tasks? Task[]
---@field tasks? LazyTask[]
---@field dirty? boolean

---@param plugin LazyPlugin
Expand Down
5 changes: 3 additions & 2 deletions lua/lazy/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ end

---@return {branch: string, hash:string}?
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
local ref, branch = slot1:match("ref: (refs/heads/(.*))")
local ref, branch = line:match("ref: (refs/heads/(.*))")

if ref then
return {
Expand Down

0 comments on commit 57d024e

Please sign in to comment.