From 9afe79a3ae65594ca483c2e6161690ff9b85123b Mon Sep 17 00:00:00 2001 From: tanvirtin Date: Sat, 3 Aug 2024 10:40:06 -0400 Subject: [PATCH] fix(#366): live gutter will no longer fetch data if it is disabled --- lua/vgit/features/buffer/LiveGutter.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/vgit/features/buffer/LiveGutter.lua b/lua/vgit/features/buffer/LiveGutter.lua index d952d84e..9cdb779c 100644 --- a/lua/vgit/features/buffer/LiveGutter.lua +++ b/lua/vgit/features/buffer/LiveGutter.lua @@ -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