Skip to content

Commit

Permalink
fix: scheduling in cwd watching
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed May 28, 2024
1 parent 720061a commit c96e3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gitsigns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ local function get_gitdir_and_head()
end

local info = require('gitsigns.git').get_repo_info(cwd)
async.scheduler()

return info.gitdir, info.abbrev_head
end
Expand All @@ -49,6 +48,7 @@ local update_cwd_head = async.create(function()
end

local gitdir, head = get_gitdir_and_head()
async.scheduler()

api.nvim_exec_autocmds('User', {
pattern = 'GitSignsUpdate',
Expand Down

0 comments on commit c96e3cf

Please sign in to comment.