Skip to content

Commit

Permalink
fix(#366): live gutter will no longer fetch data if it is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tanvirtin committed Aug 3, 2024
1 parent 8caecf0 commit 9afe79a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/vgit/features/buffer/LiveGutter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function LiveGutter:constructor()
end

LiveGutter.fetch = loop.debounce_coroutine(function(self, buffer)
if not live_gutter_setting:get('enabled') then return self end

loop.free_textlock()
if not buffer:is_valid() then return self end

Expand Down

0 comments on commit 9afe79a

Please sign in to comment.