From 911d14ed38a5f96ec2175d4adbc1f8290fd61a32 Mon Sep 17 00:00:00 2001 From: cukmekerb Date: Sun, 24 Oct 2021 12:52:51 -0700 Subject: project scan rate workaround --- plugins/gitstatus.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/gitstatus.lua b/plugins/gitstatus.lua index fda1388..bb16025 100644 --- a/plugins/gitstatus.lua +++ b/plugins/gitstatus.lua @@ -3,6 +3,7 @@ local core = require "core" local config = require "core.config" local style = require "core.style" local StatusView = require "core.statusview" +local scan_rate = config.project_scan_rate or 5 local git = { @@ -35,7 +36,7 @@ core.add_thread(function() git.branch = nil end - coroutine.yield(config.project_scan_rate) + coroutine.yield(scan_rate) end end) -- cgit v1.2.3