Skip to content

Commit

Permalink
fix: add workaround for Lazy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed Jun 5, 2024
1 parent 75dc649 commit e31d214
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/gitsigns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ local cwd_watcher ---@type uv.uv_fs_event_t?
local function get_gitdir_and_head()
local cwd = assert(uv.cwd())

-- Run on the main loop to avoid:
-- https://github.com/LazyVim/LazyVim/discussions/3407#discussioncomment-9622211
async.scheduler()

-- Look in the cache first
for _, bcache in pairs(require('gitsigns.cache').cache) do
local repo = bcache.git_obj.repo
Expand Down

0 comments on commit e31d214

Please sign in to comment.